Team:IIT Madras/Template:header
From 2011.igem.org
(Difference between revisions)
Line 22: | Line 22: | ||
$(".menu_item").hover(function(){ | $(".menu_item").hover(function(){ | ||
- | |||
var name=$(this).attr('id') + "_menu"; | var name=$(this).attr('id') + "_menu"; | ||
- | $("#"+name).slideDown(); | + | $("#"+name).stop(true,true).slideDown(); |
}, | }, | ||
function(){ | function(){ | ||
$(this).stop(); | $(this).stop(); | ||
var name=$(this).attr('id') + "_menu"; | var name=$(this).attr('id') + "_menu"; | ||
- | $("#"+name).slideUp(); | + | $("#"+name).stop(true,true).slideUp(); |
}); | }); | ||
Revision as of 21:27, 2 October 2011