Template:Team:Amsterdam/ernst/scripts

From 2012.igem.org

(Difference between revisions)
Line 52: Line 52:
//$(" #submenu ul ul ").css({display: "none"}); // Opera Fix
//$(" #submenu ul ul ").css({display: "none"}); // Opera Fix
-
$("#submenu li ul").mouseover(function(){   
+
$("#submenu ul li").mouseover(function(){   
-
$(this).stop().animate({display:'none'},{queue:false, duration:600, easing: 'easeOutBounce'});   
+
$(this).find('ul:first').stop().animate({display:'block'},{queue:false, duration:600, easing: 'easeOutBounce'});   
});  
});  
-
$("#submenu li ul").mouseout(function(){   
+
$("#submenu ul li").mouseout(function(){   
-
$(this).stop().animate({display:'block'},{queue:false, duration:600, easing: 'easeOutBounce'});   
+
$(this).find('ul:first').stop().animate({display:'none'},{queue:false, duration:600, easing: 'easeOutBounce'});   
});  
});  
}
}

Revision as of 12:36, 10 September 2012