Jump to content

JQuery toggle working in all but FF


brad_langdon

Recommended Posts

This is working in all browsers except FF.

See http://www.smartfitness.ae.php5-18.dfw1-2.websitetestlink.com/

 

It is the green call to action sitting on top of the main image. Strange thing is it used to work in FF and I have tried deleting all but one part of the effect but it does not work in FF...

 

<!-- HOME PAGE WIDGET ANIMATION -->
		<script type="text/javascript"> 
		jQuery(document).ready(function() {
    			jQuery('div.widgetfeature').toggle(
    				function() {
    				jQuery('div.featurewidget').animate({
				    /* width: '100%', */
				    height: '442px',
				    top: '0'
				  });
				  	
				  	jQuery('div.widgetfeature').animate({
				    width: '26px',
				    height: '26px',
				    bottom: '13px',
				    right: '13px'
				  });
				  
				  jQuery("div.widgetform").show();
				  
				  	jQuery('div.widgetfeature').css(
				  	"background-image", "url(<?php bloginfo('stylesheet_directory'); ?>/images/Close.png)");
				 }, 
				  		
				 function() {	
				  	jQuery('div.featurewidget').animate({
				    /* width: '423px', */
				    height: '154px',
				    top: '288px',
				    right: '0'
				  });
				  	
				  	jQuery('div.widgetfeature').animate({
				    width: '423px',
				    height: '154px',
				    right: '0',
				    bottom: '0'
				  });
				  
				  jQuery("div.widgetform").hide();
				  
				  	jQuery('div.widgetfeature').css(
				  	"background-image", "url(<?php bloginfo('stylesheet_directory'); ?>/images/Widget.png)");
			});
		});
		</script>

 

Link to comment
https://forums.phpfreaks.com/topic/223243-jquery-toggle-working-in-all-but-ff/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.