Template:Team:Amsterdam/ernst/scripts
From 2012.igem.org
(Difference between revisions)
Line 51: | Line 51: | ||
$(this).find('ul:first').animate({height:'hide', display:'none'},{queue:true, duration:400}); | $(this).find('ul:first').animate({height:'hide', display:'none'},{queue:true, duration:400}); | ||
}); | }); | ||
+ | } | ||
+ | |||
+ | function submenu3(){ | ||
+ | $(" #submenu ul ul ").css({display: "none", height:'auto'}); // Opera Fix | ||
+ | |||
+ | var config = { | ||
+ | over: function(){ | ||
+ | $(this).find('ul:first').animate({display:'block', height:'show'},{queue:true, duration:400}); | ||
+ | }, | ||
+ | timeout: 500, // number = milliseconds delay before onMouseOut | ||
+ | out: function(){ | ||
+ | $(this).find('ul:first').animate({height:'hide', display:'none'},{queue:true, duration:400}); | ||
+ | } | ||
+ | }; | ||
+ | |||
+ | $(" #submenu ul li").hoverIntent(config); | ||
} | } | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
//submenu(); | //submenu(); | ||
- | submenu2(); | + | //submenu2(); |
- | + | submenu3(); | |
}); | }); | ||
Revision as of 10:54, 11 September 2012