Template:OUC-China.CommonCSS
From 2011.igem.org
(Difference between revisions)
Line 227: | Line 227: | ||
var hideSubNav = function(){ | var hideSubNav = function(){ | ||
$(".navmenus").stop(true,true).animate({opacity:0}, 200); | $(".navmenus").stop(true,true).animate({opacity:0}, 200); | ||
+ | $(".navmenus").css("height",10); | ||
if((window.location+"").match("Team:OUC-China/Team")){ | if((window.location+"").match("Team:OUC-China/Team")){ | ||
$("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/3/3b/OUC-China.daohang.jpg.jpg) -840px 0 no-repeat"); | $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/3/3b/OUC-China.daohang.jpg.jpg) -840px 0 no-repeat"); | ||
Line 244: | Line 245: | ||
$(".navitem").mouseenter(function(){ | $(".navitem").mouseenter(function(){ | ||
$(".navmenus").stop(true,true).animate({opacity:0}, 200); | $(".navmenus").stop(true,true).animate({opacity:0}, 200); | ||
+ | $(".navmenus").css("height","auto"); | ||
$($(this).attr("href")).stop(true,true).animate({opacity:0.9}, 200); | $($(this).attr("href")).stop(true,true).animate({opacity:0.9}, 200); | ||
var bg = $($(this).attr("href")).attr("tag"); | var bg = $($(this).attr("href")).attr("tag"); |
Revision as of 15:39, 5 October 2011