Template:Team:HokkaidoU Japan/LargeDropDown/JS
From 2014.igem.org
(Difference between revisions)
Line 8: | Line 8: | ||
$menu.eq($number).find('li').hover(function(){ alert($number) | $menu.eq($number).find('li').hover(function(){ alert($number) | ||
+ | $child.find('.ldd_submenu').slideDown(300); | ||
+ | } ,function(){ | ||
+ | $child.find('.ldd_submenu').stop(true,true).hide(); | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | $(function() { | ||
+ | var $menu = $('#ldd_menu'); | ||
+ | var $number = $('.menu_button').index($child); | ||
+ | |||
+ | $menu.eq($number).hover(function(){ alert($number) | ||
$child.find('.ldd_submenu').slideDown(300); | $child.find('.ldd_submenu').slideDown(300); | ||
} ,function(){ | } ,function(){ |
Revision as of 16:06, 5 October 2014