Difference between revisions of "Template:China Tongji Head"
Line 206: | Line 206: | ||
//当前位置指示 | //当前位置指示 | ||
− | + | var keyWord = location.href.substring(39); | |
+ | if(keyWord.indexOf("Project")>0){ | ||
document.getElementById("divProject").style.borderBottom = "4px solid #F0F"; | document.getElementById("divProject").style.borderBottom = "4px solid #F0F"; | ||
− | }else if( | + | }else if(keyWord.indexOf("Notebook")>0){ |
document.getElementById("divNotebook").style.borderBottom = "4px solid #F0F"; | document.getElementById("divNotebook").style.borderBottom = "4px solid #F0F"; | ||
− | }else if( | + | }else if(keyWord.indexOf("Achivement")>0){ |
document.getElementById("divAchivement").style.borderBottom = "4px solid #F0F"; | document.getElementById("divAchivement").style.borderBottom = "4px solid #F0F"; | ||
− | }else if( | + | }else if(keyWord.indexOf("Team")>0){ |
document.getElementById("divTeam").style.borderBottom = "4px solid #F0F"; | document.getElementById("divTeam").style.borderBottom = "4px solid #F0F"; | ||
− | }else if( | + | }else if(keyWord.indexOf("Outreach")>0){ |
document.getElementById("divOutreach").style.borderBottom = "4px solid #F0F"; | document.getElementById("divOutreach").style.borderBottom = "4px solid #F0F"; | ||
− | }else if( | + | }else if(keyWord.indexOf("Safety")>0){ |
document.getElementById("divSafety").style.borderBottom = "4px solid #F0F"; | document.getElementById("divSafety").style.borderBottom = "4px solid #F0F"; | ||
}else{ | }else{ |
Revision as of 11:46, 14 September 2015