Team:UPIBI-Mexico/Templates/Main
From 2012.igem.org
(Difference between revisions)
(Created page with "<html> <link rel="stylesheet" href="https://2012.igem.org/Team:UPIBI-Mexico/Templates/Stylesheet?action=raw&ctype=text/css" type="text/css" /> <div id="header"> <a href="/Team:UPI...") |
|||
Line 11: | Line 11: | ||
<!--Menú de Navegación --> | <!--Menú de Navegación --> | ||
{{:Team:UPIBI-Mexico/Templates/Navigationbar}} | {{:Team:UPIBI-Mexico/Templates/Navigationbar}} | ||
+ | |||
+ | <!-- Javascript --> | ||
+ | |||
+ | |||
+ | <!-- Sexy Drop Down (drop down navigation) --> | ||
+ | <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> |
Revision as of 20:06, 22 June 2012