Template:Team:HokkaidoU Japan/LargeDropDown/JS
From 2014.igem.org
(Difference between revisions)
(Created page with "<html> <script type="text/javascript"> $(function() { - →* * the menu: var $menu = $('#ldd_menu'); /** * for each list element, ...") |
|||
(97 intermediate revisions not shown) | |||
Line 2: | Line 2: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | $(function() { | |
- | + | var $menu = $('#ldd_menu'); | |
- | + | var $child = $menu.children(".menu_button"); | |
- | + | $child.hover(function() { | |
- | + | var $number = $child.index(this); | |
- | + | ||
- | + | $child.eq($number).find('.ldd_submenu').stop().slideDown(300); | |
- | + | } ,function(){ | |
- | + | $child.find('.ldd_submenu').stop(true).slideUp(300); | |
- | + | ||
- | + | }); | |
- | + | }); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 13:12, 17 October 2014