Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 4: Line 4:
$(function() {
$(function() {
    var $menu = $('#ldd_menu');
    var $menu = $('#ldd_menu');
-
                     var $child = $menu.children('span');
+
                     var $child = $menu.children('li');
                     var $number = $child.index($child);
                     var $number = $child.index($child);
         $menu.children('li').hover(function(){ alert($number)
         $menu.children('li').hover(function(){ alert($number)
-
  $child.eq($number).find('.ldd_submenu').slideDown(300);
+
            $child.find('.ldd_submenu').slideDown(300);
} ,function(){  
} ,function(){  
                                           $child.find('.ldd_submenu').stop(true,true).hide();
                                           $child.find('.ldd_submenu').stop(true,true).hide();

Revision as of 15:58, 5 October 2014