Team:UCLA/Template/Javascript
From 2014.igem.org
(Difference between revisions)
Anuvedverma (Talk | contribs) |
Anuvedverma (Talk | contribs) |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | $(document).ready(function() { | |
- | + | $("#menu > li > ul").hide(); | |
- | + | $("#menu > li").mouseenter(function() { | |
- | + | $(this).children("li > ul").slideDown(500); | |
- | + | }); | |
- | + | $("#menu > li").mouseleave(function() { | |
- | + | $(this).children("li > ul").slideUp(500); | |
- | + | }); | |
- | + | }); | |
- | function | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | } | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 00:11, 19 July 2014