Difference between revisions of "Template:China Tongji Head"

Line 2: Line 2:
  
 
<head>
 
<head>
 +
 +
<!--当前位置指示-->
 +
<script defer="defer">
 +
var keyWord = location.href.substring(39);
 +
switch (keyWord)
 +
{
 +
  case "ome":
 +
document.getElementById("Home").style.color = "#F0F";
 +
break;
 +
  case "Project":
 +
document.getElementById("Project").style.color = "#F0F";
 +
break;
 +
  case "Notebook":
 +
document.getElementById("Notebook").style.color = "#F0F";
 +
break;
 +
  case "Achivement":
 +
document.getElementById("Achivement").style.color = "#F0F";
 +
break;
 +
  case "Team":
 +
document.getElementById("Team").style.color = "#F0F";
 +
break;
 +
  case "Outreach":
 +
document.getElementById("Outreach").style.color = "#F0F";
 +
break;
 +
  case "Safety":
 +
document.getElementById("Safety").style.color = "#F0F";
 +
break;
 +
}
 +
</script>
  
 
<style type="text/css">
 
<style type="text/css">
Line 91: Line 120:
 
     </div>     
 
     </div>     
 
</div>
 
</div>
 
<!--当前位置指示-->
 
<script defer="defer">
 
var keyWord = location.href.substring(39);
 
switch (keyWord)
 
{
 
  case "ome":
 
document.getElementById("Home").style.color = "#F0F";
 
break;
 
  case "Project":
 
document.getElementById("Project").style.color = "#F0F";
 
break;
 
  case "Notebook":
 
document.getElementById("Notebook").style.color = "#F0F";
 
break;
 
  case "Achivement":
 
document.getElementById("Achivement").style.color = "#F0F";
 
break;
 
  case "Team":
 
document.getElementById("Team").style.color = "#F0F";
 
break;
 
  case "Outreach":
 
document.getElementById("Outreach").style.color = "#F0F";
 
break;
 
  case "Safety":
 
document.getElementById("Safety").style.color = "#F0F";
 
break;
 
}
 
</script>
 
  
 
</body>
 
</body>
  
 
</html>
 
</html>

Revision as of 21:18, 16 July 2015