Team:DTU-Denmark/Templates/Standard page begin FRONTPAGE
From 2011.igem.org
(Difference between revisions)
Line 33: | Line 33: | ||
<!-- Sexy Drop Down (drop down navigation) --> | <!-- Sexy Drop Down (drop down navigation) --> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $(document).ready(function(){ | + | $(document).ready( |
- | + | function(){ | |
- | + | $("ul.subnav").parent().find("> a").append("<span> ▼</span>"); | |
- | + | $("ul.topnav li").hover( | |
- | + | function() { | |
- | + | // Hover over | |
- | + | $(this).find("ul.subnav").slideDown('fast').show(); | |
- | + | // Hover out | |
- | + | $(this).hover( | |
- | + | function() { | |
- | + | }, | |
- | + | function(){ | |
- | + | $(this).find("ul.subnav").slideUp('slow'); | |
- | + | } | |
- | } | + | ); |
- | + | } | |
+ | ); | ||
+ | } | ||
+ | ); | ||
</script> | </script> | ||
Revision as of 11:35, 16 September 2011