Template:Team:HokkaidoU Japan/LargeDropDown/JS
From 2014.igem.org
(Difference between revisions)
(4 intermediate revisions not shown) | |||
Line 5: | Line 5: | ||
var $menu = $('#ldd_menu'); | var $menu = $('#ldd_menu'); | ||
var $child = $menu.children(".menu_button"); | var $child = $menu.children(".menu_button"); | ||
- | |||
- | |||
$child.hover(function() { | $child.hover(function() { | ||
var $number = $child.index(this); | var $number = $child.index(this); | ||
- | $child.eq($number).find('.ldd_submenu').slideDown(300); | + | $child.eq($number).find('.ldd_submenu').stop().slideDown(300); |
} ,function(){ | } ,function(){ | ||
- | $child.find('.ldd_submenu').stop( | + | $child.find('.ldd_submenu').stop(true).slideUp(300); |
}); | }); |
Latest revision as of 13:12, 17 October 2014