Template:OUC-China.CommonCSS

From 2011.igem.org

(Difference between revisions)
Line 196: Line 196:
var hideSubNav = function(){
var hideSubNav = function(){
$(".navmenus").stop(true,true).animate({opacity:0}, 200);
$(".navmenus").stop(true,true).animate({opacity:0}, 200);
-
$("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/d/d9/OUC-China.home1.jpg) top center no-repeat");
+
        if(window.location.match("Team:OUC-China/Team"){
 +
    $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/c/c0/OUC-China.team.jpg) top center no-repeat");
 +
        }else if(window.location.match("Team:OUC-China/Project"){
 +
$("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/4/41/OUC-China.project.jpg) top center no-repeat");
 +
      }else if(window.location.match("Team:OUC-China/Result"){
 +
$("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/7/78/OUC-China.result.jpg) top center no-repeat");
 +
      lelse if(window.location.match("Team:OUC-China/Safety"){
 +
$("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/4/4b/OUC-China.consideration.jpg) top center no-repeat");
 +
      }else if(window.location.match("Team:OUC-China/Futurework"){
 +
$("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/1/12/OUC-China.future_work.jpg) top center no-repeat");
 +
      }
}
}

Revision as of 03:20, 5 October 2011