Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 6: Line 6:
                     var $submenu = $(".ldd_submenu");
                     var $submenu = $(".ldd_submenu");
                     var $child = $menu.children('li');
                     var $child = $menu.children('li');
-
                     var $number = $child.index($child);
+
                     var $number = $child.index(this);
         $child.eq($number).hover(function(){ alert($number);
         $child.eq($number).hover(function(){ alert($number);
  $submenu.eq($number).slideDown(300);
  $submenu.eq($number).slideDown(300);

Revision as of 12:20, 5 October 2014