Template:Team:HokkaidoU Japan/LargeDropDown/JS
From 2014.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
var $menu = $('#ldd_menu'); | var $menu = $('#ldd_menu'); | ||
var $child = $menu.children("li"); | var $child = $menu.children("li"); | ||
- | var $ | + | var $number = $menu.children("li").index(this); |
- | $child.eq( | + | $child.eq(number).hover(function(){ |
$child.find('.ldd_submenu').slideDown(300); | $child.find('.ldd_submenu').slideDown(300); | ||
} ,function(){ | } ,function(){ |
Revision as of 11:40, 5 October 2014