Difference between revisions of "Template:China Tongji Head"

(Replaced content with "https://2015.igem.org/Team:China_Tongji")
Line 1: Line 1:
https://2015.igem.org/Team:China_Tongji
+
<html>
 +
 
 +
<head>
 +
 
 +
<style type="text/css">
 +
 
 +
body {
 +
    width:100%;
 +
margin: 0px;
 +
background-color: #F0F0F0;
 +
}
 +
 
 +
.head{
 +
width: 100%;
 +
height: 60px;
 +
background:url(https://static.igem.org/mediawiki/2015/8/8c/Team_China_Tongji-transparent-nav.png);
 +
position: fixed;
 +
    left:0px;
 +
top: 18px;
 +
border-bottom: thin solid #CCC;
 +
z-index:1000;
 +
}
 +
.head:hover{
 +
background: #FFF;
 +
}
 +
 
 +
#navLogoLeft{
 +
float:left;
 +
margin-left:15px;
 +
margin-right:20px;
 +
 
 +
}
 +
#navLogoLeft img{
 +
border:0px;
 +
}
 +
#navLogoRight{
 +
float:right;
 +
margin-right:10px;
 +
padding:5px;
 +
}
 +
#navLogoRight img{
 +
border:0px;
 +
}
 +
 
 +
.nav {
 +
float:left;
 +
}
 +
.navFirstTitle{
 +
line-height: 60px;
 +
text-decoration: none;
 +
padding: 10px 12px;
 +
text-transform: uppercase;
 +
font-family: "Comic Sans MS", cursive,Georgia;
 +
font-size: 14px;
 +
}
 +
.navFirstTitle:hover{
 +
background-color:#CCC;
 +
}
 +
</style>
 +
 
 +
<script>
 +
 
 +
</script>
 +
 
 +
</head>
 +
 
 +
<body>
 +
 
 +
<div class="head">
 +
<div id="navLogoLeft">
 +
        <a href="https://igem.org/Team.cgi?year=2015&amp;team_name=China_Tongji">
 +
        <img src="https://static.igem.org/mediawiki/2015/9/9b/China_Tongji_team-logo-60px.png"/>
 +
        </a>
 +
    </div>
 +
    <div class="nav">
 +
    <tr>
 +
            <td><a class="navFirstTitle" id="Home" href="https://2015.igem.org/Team:China_Tongji">Home</a></td>
 +
            <td><a class="navFirstTitle" id="Project" href="https://2015.igem.org/Team:China_Tongji/Project">Project</a>
 +
            </td>
 +
            <td><a class="navFirstTitle" id="Notebook" href="https://2015.igem.org/Team:China_Tongji/Notebook">Notebook</a></td>
 +
            <td><a class="navFirstTitle" id="Achivement" href="https://2015.igem.org/Team:China_Tongji/Achivement">Achivement</a>
 +
            </td>
 +
            <td><a class="navFirstTitle" id="Team" href="https://2015.igem.org/Team:China_Tongji/Team">Team</a></td>
 +
            <td><a class="navFirstTitle" id="Outreach" href="https://2015.igem.org/Team:China_Tongji/Outreach">Outreach</a></td>
 +
            <td><a class="navFirstTitle" id="Safety" href="https://2015.igem.org/Team:China_Tongji/Safety">Safety</a></td>
 +
      </tr>
 +
    </div> 
 +
    <div id="navLogoRight">
 +
        <a href="https://2015.igem.org/Main_Page">
 +
            <img src="https://static.igem.org/mediawiki/2015/4/47/China_Tongji-logo-right.png" alt="China_Tongji"/>
 +
        </a>
 +
    </div>   
 +
</div>
 +
 
 +
 
 +
<!--当前位置指示-->
 +
<script 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>
 +
 
 +
</html>

Revision as of 22:05, 16 July 2015