Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 8: Line 8:
                     var $number = $child.index($child);
                     var $number = $child.index($child);
         $child.eq($number).hover(function(){ alert($number);
         $child.eq($number).hover(function(){ alert($number);
-
  $submenu.eq($number).slideDown(300);
+
  $child.eq($number).find('.ldd_submenu').slideDown(300);
} ,function(){  
} ,function(){  
-
                                           $submenu.stop(true,true).hide();
+
                                           $child.find('.ldd_submenu').stop(true,true).hide();
});
});
});
});
</script>
</script>
</html>
</html>

Revision as of 12:24, 5 October 2014