Team:Valencia/navbar
From 2010.igem.org
(Difference between revisions)
Alejovigno (Talk | contribs) |
Alejovigno (Talk | contribs) |
||
Line 4: | Line 4: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | + | $("ul#topnav li").hover(function() { | |
- | + | $(this).css({ 'background' : '#1376c9 url(https://static.igem.org/mediawiki/2010/2/29/Groningen_topnav_active.gif) repeat-x'}); | |
- | + | $(this).find("span").show(); | |
- | + | } , function() { //on hover out... | |
- | + | $(this).css({ 'background' : 'none'}); | |
- | + | $(this).find("span").hide(); | |
- | + | }); | |
- | + | ||
- | + | ||
}); | }); | ||
</script> | </script> |
Revision as of 11:13, 23 October 2010