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);
-
  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/c/c0/OUC-China.team.jpg) top center no-repeat");
  $("#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")){
+
       }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");
  $("#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")){
+
       }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");
  $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/7/78/OUC-China.result.jpg) top center 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/4/4b/OUC-China.consideration.jpg) top center no-repeat");
  $("#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")){
+
       }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");
  $("#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:30, 5 October 2011