Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 19: Line 19:
    var $menu = $('#ldd_menu');
    var $menu = $('#ldd_menu');
                     var $child  = $menu.children(".menu_button")
                     var $child  = $menu.children(".menu_button")
-
                    var $number = $child.index();
 
-
        $menu.eq($number).hover(function(){alert($number)
+
                    $child.hover(function() {  
 +
                    var number = $child.index(this);
            $child.eq($number).find('.ldd_submenu').slideDown(300);
            $child.eq($number).find('.ldd_submenu').slideDown(300);
} ,function(){  
} ,function(){  

Revision as of 16:38, 5 October 2014