Team:Hong Kong HKUST/layout2
From 2013.igem.org
(Difference between revisions)
Line 4: | Line 4: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | $( | + | $(".menu li").hover(function(){ |
- | $(this).find( | + | $(this).find("ul>li").stop().fadeToggle(10); |
}); | }); | ||
}); | }); | ||
Line 52: | Line 52: | ||
<div class="menu"> | <div class="menu"> | ||
+ | <ul > | ||
+ | <li><a href="">Home</a> | ||
+ | <ul><li><a href="">link1</a></li></ul> | ||
+ | </li> | ||
+ | </ul> | ||
<ul> | <ul> | ||
<li><a href="">Home</a> | <li><a href="">Home</a> | ||
Line 57: | Line 62: | ||
</li> | </li> | ||
</ul> | </ul> | ||
- | |||
</div> | </div> | ||
- | + | ||
+ | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 16:39, 4 July 2013