Team:SDU-Denmark/menu
From 2009.igem.org
(Difference between revisions)
Line 54: | Line 54: | ||
ul#topnav li span a:hover {text-decoration: underline;} | ul#topnav li span a:hover {text-decoration: underline;} | ||
</style> | </style> | ||
- | <script type="text/javascript" | + | |
- | src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> | + | <!-- MENU SCRIPT, http://www.sohtanaka.com --> |
+ | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> | ||
+ | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | |||
$("ul#topnav li").hover(function() { //Hover over event on list item | $("ul#topnav li").hover(function() { //Hover over event on list item | ||
$(this).css({ 'background' : '#1376c9 url(https://static.igem.org/mediawiki/2009/a/a7/SDU-Denmark-topnav_active.gif) repeat-x'}); //Add background color + image on hovered list item | $(this).css({ 'background' : '#1376c9 url(https://static.igem.org/mediawiki/2009/a/a7/SDU-Denmark-topnav_active.gif) repeat-x'}); //Add background color + image on hovered list item | ||
Line 66: | Line 67: | ||
$(this).find("span").hide(); //Hide the subnav | $(this).find("span").hide(); //Hide the subnav | ||
}); | }); | ||
- | |||
}); | }); | ||
</script> | </script> | ||
+ | |||
</head> | </head> | ||
Revision as of 09:44, 21 October 2009
Protocols | Brainstorm | Helping others | Tools | Safety | Sitemap