Template:OUC-China.CommonCSS
From 2011.igem.org
(Difference between revisions)
Line 224: | Line 224: | ||
$(".navmenus").stop(true,true).animate({opacity:0}, 200); | $(".navmenus").stop(true,true).animate({opacity:0}, 200); | ||
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/ | + | $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/3/3b/OUC-China.daohang.jpg.jpg) -840px 0 no-repeat"); |
}else if((window.location+"").match("Team:OUC-China/Project")){ | }else if((window.location+"").match("Team:OUC-China/Project")){ | ||
- | $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/ | + | $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/3/3b/OUC-China.daohang.jpg.jpg) -1680px 0 no-repeat"); |
}else if((window.location+"").match("Team:OUC-China/Result")){ | }else if((window.location+"").match("Team:OUC-China/Result")){ | ||
- | $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/ | + | $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/3/3b/OUC-China.daohang.jpg.jpg) -2520px 0 no-repeat"); |
}else if((window.location+"").match("Team:OUC-China/Safety")){ | }else if((window.location+"").match("Team:OUC-China/Safety")){ | ||
- | $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/ | + | $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/3/3b/OUC-China.daohang.jpg.jpg) -3360px 0 no-repeat"); |
}else if((window.location+"").match("Team:OUC-China/Futurework")){ | }else if((window.location+"").match("Team:OUC-China/Futurework")){ | ||
- | $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/ | + | $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/3/3b/OUC-China.daohang.jpg.jpg) -4200px 0 no-repeat"); |
} | } | ||
} | } | ||
Line 242: | Line 242: | ||
$($(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"); | ||
- | $("#mainnav").animate({backgroundPosition:"(-"+bg+"px 0px)"}, {duration:200}); | + | $("#mainnav").stop().animate({backgroundPosition:"(-"+bg+"px 0px)"}, {duration:200}); |
}); | }); | ||
$(".navitem").click(function(){ | $(".navitem").click(function(){ |
Revision as of 05:27, 5 October 2011