Template:Team:HokkaidoU Japan/LargeDropDown/JS
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | |||
$(function() { | $(function() { | ||
Line 7: | Line 6: | ||
var $child = $menu.children('li'); | var $child = $menu.children('li'); | ||
var number = $child.index(this); | var number = $child.index(this); | ||
+ | $(function(){alert:number}); | ||
$child.hover(function(){ | $child.hover(function(){ | ||
$child.find('.ldd_submenu').eq(number).slideDown(300); | $child.find('.ldd_submenu').eq(number).slideDown(300); |
Revision as of 11:52, 5 October 2014