Template:Team:Groningen/Header
From 2010.igem.org
(Difference between revisions)
Joelkuiper (Talk | contribs) |
Joelkuiper (Talk | contribs) |
||
Line 40: | Line 40: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$("#contentWrapper").css('height', $("#otherContent").height() + "px"); | $("#contentWrapper").css('height', $("#otherContent").height() + "px"); | ||
+ | $("ul#topnav li").find("span").stop().fadeTo('normal', 0).hide(); | ||
$("ul#topnav li").hover(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).css({ 'background' : '#1376c9 url(https://static.igem.org/mediawiki/2010/2/29/Groningen_topnav_active.gif) repeat-x'}); | ||
- | $(this).find("span").show(); | + | $(this).find("span").stop().fadeTo('normal', 1).show(); |
} , function() { | } , function() { | ||
$(this).css({ 'background' : 'none'}); //on hover out... | $(this).css({ 'background' : 'none'}); //on hover out... | ||
- | $(this).find("span").hide(); | + | $(this).find("span").stop().fadeTo('normal', 0 , function() { $(this).hide() }); |
}); | }); | ||
Revision as of 02:17, 27 October 2010