Template:Team:Amsterdam/ernst/scripts

From 2012.igem.org

(Difference between revisions)
Line 54: Line 54:
$(" #submenu ul li").hover(function(){
$(" #submenu ul li").hover(function(){
-
$(this).submenuul = $(this).find('ul:first')
+
$(this).find('ul:first').stop().animate({display:'block', height:'show'},{queue:false, duration:400});
-
submenuul.stop().animate({display:'block', height:'show'},{queue:false, duration:400});
+
},function(){
},function(){
-
$(this).submenuul.stop().animate({height:'hide', display:'none'},{queue:false, duration:400});
+
$(this).find('ul:first').stop().animate({height:'hide', display:'none'},{queue:false, duration:400});
});
});
}
}

Revision as of 14:07, 10 September 2012