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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.