Team:UPIBI-Mexico/Templates/Main
From 2012.igem.org
(Difference between revisions)
Line 14: | Line 14: | ||
<!-- Sexy Drop Down (drop down navigation) --> | <!-- Sexy Drop Down (drop down navigation) --> | ||
<html> | <html> | ||
- | + | <script type="text/javascript"> | |
- | + | $(document).ready( | |
+ | function(){ | ||
+ | $("ul.subnav").parent().find("> a").append("<span> ▼</span>"); | ||
+ | $("ul.topnav li").hover( | ||
+ | function() { | ||
+ | // Hover over | ||
+ | $(this).parent().find("ul.subnav").hide(); | ||
+ | $(this).find("ul.subnav").show(); | ||
+ | // Hover out | ||
+ | $(this).hover( | ||
+ | function() { | ||
+ | }, | ||
+ | function(){ | ||
+ | $(this).find("ul.subnav").hide(); | ||
+ | } | ||
+ | ); | ||
+ | }, | ||
+ | function(){ | ||
+ | $(this).find("ul.subnav").hide(); | ||
+ | } | ||
- | + | ); | |
- | + | } | |
- | + | ); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 21:03, 22 June 2012