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(){
-
var submenuul = $(this).find('ul:first')
+
$(this).submenuul = $(this).find('ul:first')
submenuul.stop().animate({display:'block', height:'show'},{queue:false, duration:400});
submenuul.stop().animate({display:'block', height:'show'},{queue:false, duration:400});
},function(){
},function(){
-
self.animate({height:'hide', display:'none'},{queue:false, duration:400});
+
$(this).submenuul.stop().animate({height:'hide', display:'none'},{queue:false, duration:400});
});
});
}
}

Revision as of 14:07, 10 September 2012