Team:DTU-Denmark/Templates/Standard page begin
From 2011.igem.org
(Difference between revisions)
Line 37: | Line 37: | ||
<!-- 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").stop(true, true).show(); | |
- | + | // Hover out | |
- | + | $(this).hover( | |
- | + | function() { | |
- | + | }, | |
- | + | function(){ | |
- | + | $(this).find("ul.subnav").slideUp('slow'); | |
- | + | } | |
- | } | + | ); |
- | + | }, | |
+ | function(){ | ||
+ | $(this).find("ul.subnav").slideUp('slow'); | ||
+ | } | ||
+ | |||
+ | ); | ||
+ | } | ||
+ | ); | ||
</script> | </script> | ||
Revision as of 10:44, 18 September 2011
{{{1}}}