Difference between revisions of "Template:China Tongji Head"

Line 213: Line 213:
 
}else if(keyWord.match("Achivement") != null){
 
}else if(keyWord.match("Achivement") != null){
 
document.getElementById("divAchivement").style.borderBottom = "4px solid #F0F";
 
document.getElementById("divAchivement").style.borderBottom = "4px solid #F0F";
}else if(keyWord.match("Team" != null)){
+
}else if(keyWord.match("Team") != null){
 
document.getElementById("divTeam").style.borderBottom = "4px solid #F0F";
 
document.getElementById("divTeam").style.borderBottom = "4px solid #F0F";
 
}else if(keyWord.match("Outreach") != null){
 
}else if(keyWord.match("Outreach") != null){
Line 219: Line 219:
 
}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 if(keyWord.length ==1 ){
+
}else{
 
document.getElementById("divHome").style.borderBottom = "4px solid #F0F";
 
document.getElementById("divHome").style.borderBottom = "4px solid #F0F";
 
}
 
}

Revision as of 12:01, 14 September 2015