Template:Team:Amsterdam/scripts
From 2012.igem.org
(Difference between revisions)
Line 44: | Line 44: | ||
$(" #navmenu ul li").hoverIntent(config); | $(" #navmenu ul li").hoverIntent(config); | ||
}; | }; | ||
+ | |||
+ | function navmenu2(){ | ||
+ | $(" #navmenu ul ul ").css({display: "none", height:'auto'}); // Opera Fix | ||
+ | |||
+ | $("#navmenu ul li").toggle( | ||
+ | function () { | ||
+ | $(this).find('ul:first').animate({display:'block', height:'show'},{queue:true, duration:400}); | ||
+ | }, | ||
+ | function () { | ||
+ | $(this).find('ul:first').animate({height:'hide', display:'none'},{queue:true, duration:400}); | ||
+ | } | ||
+ | ); | ||
Revision as of 17:34, 25 September 2012