Difference between revisions of "Template:China Tongji Head"

Line 206: Line 206:
 
 
 
//当前位置指示
 
//当前位置指示
var keyWord = location.href.substring(39);
+
var keyWord = location.href.substring(38);
 
alert(keyWord);
 
alert(keyWord);
 
if(keyWord.match("Project") != null){
 
if(keyWord.match("Project") != null){
Line 220: Line 220:
 
}else if(keyWord.match("Safety") != null){
 
}else if(keyWord.match("Safety") != null){
 
document.getElementById("divSafety").style.borderBottom = "4px solid #F0F";
 
document.getElementById("divSafety").style.borderBottom = "4px solid #F0F";
}else{
+
}else if(keyWord.length ==1 ){
 
document.getElementById("divHome").style.borderBottom = "4px solid #F0F";
 
document.getElementById("divHome").style.borderBottom = "4px solid #F0F";
 
}
 
}

Revision as of 11:56, 14 September 2015