Difference between revisions of "Template:China Tongji Head"
(48 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<head> | <head> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<style type="text/css"> | <style type="text/css"> | ||
− | |||
#globalWrapper{ | #globalWrapper{ | ||
padding:0px; | padding:0px; | ||
Line 48: | Line 20: | ||
.head{ | .head{ | ||
position: fixed; | position: fixed; | ||
− | + | left:0px; | |
top:18px; | top:18px; | ||
width: 100%; | width: 100%; | ||
Line 54: | Line 26: | ||
background:url(https://static.igem.org/mediawiki/2015/8/8c/Team_China_Tongji-transparent-nav.png); | background:url(https://static.igem.org/mediawiki/2015/8/8c/Team_China_Tongji-transparent-nav.png); | ||
border-bottom: thin solid #CCC; | border-bottom: thin solid #CCC; | ||
− | z-index: | + | z-index:10000; |
} | } | ||
.head:hover{ | .head:hover{ | ||
Line 104: | Line 76: | ||
background:#CCC; | background:#CCC; | ||
border-bottom: 4px solid #CCC; | border-bottom: 4px solid #CCC; | ||
+ | cursor:pointer; | ||
} | } | ||
.navOne:hover a{ | .navOne:hover a{ | ||
Line 119: | Line 92: | ||
list-style-type: none; | list-style-type: none; | ||
padding: 5px 10px; | padding: 5px 10px; | ||
+ | max-width:130px; | ||
} | } | ||
.navTwo:hover{ | .navTwo:hover{ | ||
background:#999; | background:#999; | ||
+ | cursor:pointer; | ||
} | } | ||
.navTwo a{ | .navTwo a{ | ||
Line 127: | Line 102: | ||
font-family: Georgia, "Times New Roman", Times, serif; | font-family: Georgia, "Times New Roman", Times, serif; | ||
font-size: 14px; | font-size: 14px; | ||
+ | display:block; | ||
+ | width:100%; | ||
} | } | ||
Line 133: | Line 110: | ||
<body> | <body> | ||
− | |||
<!--head start--> | <!--head start--> | ||
<div class="head"> | <div class="head"> | ||
<div id="navLogoLeft"> | <div id="navLogoLeft"> | ||
− | <a href="https://igem.org/Team.cgi?year=2015&team_name=China_Tongji"> | + | <a href="https://igem.org/Team.cgi?year=2015&team_name=China_Tongji" target="_blank"> |
<img id="teamLogo" src="https://static.igem.org/mediawiki/2015/5/57/China_Tongji_team-logo-300px.png"/> | <img id="teamLogo" src="https://static.igem.org/mediawiki/2015/5/57/China_Tongji_team-logo-300px.png"/> | ||
</a> | </a> | ||
</div> | </div> | ||
<div id="navLogoRight"> | <div id="navLogoRight"> | ||
− | <a href="https://2015.igem.org/Main_Page"> | + | <a href="https://2015.igem.org/Main_Page" target="_blank"> |
<img id="igemLogo" src="https://static.igem.org/mediawiki/2015/2/20/China_Tongji_iGEM_logo.png" alt="China_Tongji"/> | <img id="igemLogo" src="https://static.igem.org/mediawiki/2015/2/20/China_Tongji_iGEM_logo.png" alt="China_Tongji"/> | ||
</a> | </a> | ||
Line 150: | Line 126: | ||
<div class="navOne" id="divProject"><a class="navOneA" id="Project" href="https://2015.igem.org/Team:China_Tongji/Project">Project <img src="https://static.igem.org/mediawiki/2015/0/07/China_Tongji_2015_dropdown_arrow.png"></a> | <div class="navOne" id="divProject"><a class="navOneA" id="Project" href="https://2015.igem.org/Team:China_Tongji/Project">Project <img src="https://static.igem.org/mediawiki/2015/0/07/China_Tongji_2015_dropdown_arrow.png"></a> | ||
<div class="navDrop"> | <div class="navDrop"> | ||
− | <li class="navTwo" id="navOverview"><a | + | <li class="navTwo" id="navOverview"><a href="https://2015.igem.org/Team:China_Tongji/Project?locationId=Overview">Overview</a></li> |
− | <li class="navTwo" id="navBackground"><a | + | <li class="navTwo" id="navBackground"><a href="https://2015.igem.org/Team:China_Tongji/Project?locationId=Background">Background</a></li> |
− | <li class="navTwo" id="navDesign"><a | + | <li class="navTwo" id="navDesign"><a href="https://2015.igem.org/Team:China_Tongji/Project?locationId=ProjectDesign">Project Design</a></li> |
− | <li class="navTwo" id="navProtocol"><a class=" | + | <li class="navTwo" id="navProtocol"><a href="https://2015.igem.org/Team:China_Tongji/Project?locationId=Protocol">Protocol</a></li> |
− | <li class="navTwo" id=" | + | <li class="navTwo" id="navSummaryResult"><a href="https://2015.igem.org/Team:China_Tongji/Project?locationId=SummaryResult">Summary and Result</a></li> |
+ | <li class="navTwo" id="navDesign"><a href="https://2015.igem.org/Team:China_Tongji/Project?locationId=Design">Design</a></li> | ||
+ | <li class="navTwo" id="navCharacterize"><a href="https://2015.igem.org/Team:China_Tongji/Project?locationId=Characterize">Characterize an existing part</a></li> | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="navOne" id="divNotebook"><a class="navOneA" id="Notebook" href="https://2015.igem.org/Team:China_Tongji/Notebook">Notebook <img src="https://static.igem.org/mediawiki/2015/0/07/China_Tongji_2015_dropdown_arrow.png"></a> | <div class="navOne" id="divNotebook"><a class="navOneA" id="Notebook" href="https://2015.igem.org/Team:China_Tongji/Notebook">Notebook <img src="https://static.igem.org/mediawiki/2015/0/07/China_Tongji_2015_dropdown_arrow.png"></a> | ||
<div class="navDrop"> | <div class="navDrop"> | ||
− | <li class="navTwo" id="navRecord"><a href="https://2015.igem.org/Team:China_Tongji/Notebook">Record</a></li> | + | <li class="navTwo" id="navRecord"><a href="https://2015.igem.org/Team:China_Tongji/Notebook?locationId=Record">Record</a></li> |
− | <li class="navTwo" id="navTimeline"><a href="https://2015.igem.org/Team:China_Tongji/Notebook">Timeline</a></li> | + | <li class="navTwo" id="navTimeline"><a href="https://2015.igem.org/Team:China_Tongji/Notebook?locationId=Timeline">Timeline</a></li> |
</div> | </div> | ||
</div> | </div> | ||
<div class="navOne" id="divAchivement"><a class="navOneA" id="Achivement" href="https://2015.igem.org/Team:China_Tongji/Achivement">Achivement <img src="https://static.igem.org/mediawiki/2015/0/07/China_Tongji_2015_dropdown_arrow.png"></a> | <div class="navOne" id="divAchivement"><a class="navOneA" id="Achivement" href="https://2015.igem.org/Team:China_Tongji/Achivement">Achivement <img src="https://static.igem.org/mediawiki/2015/0/07/China_Tongji_2015_dropdown_arrow.png"></a> | ||
<div class="navDrop"> | <div class="navDrop"> | ||
− | <li class="navTwo" id="navParts"><a href="https://2015.igem.org/Team:China_Tongji/Achivement">Parts</a></li> | + | <li class="navTwo" id="navParts"><a href="https://2015.igem.org/Team:China_Tongji/Achivement?locationId=Parts">Parts</a></li> |
− | <li class="navTwo" id="navEquipment"><a href="https://2015.igem.org/Team:China_Tongji/Achivement">Equipment</a></li> | + | <li class="navTwo" id="navEquipment"><a href="https://2015.igem.org/Team:China_Tongji/Achivement?locationId=Equipment">Equipment</a></li> |
− | <li class="navTwo" id="navModeling"><a href="https://2015.igem.org/Team:China_Tongji/Achivement">Modeling</a></li> | + | <li class="navTwo" id="navModeling"><a href="https://2015.igem.org/Team:China_Tongji/Achivement?locationId=Modeling">Modeling</a></li> |
− | <li class="navTwo" id=" | + | <li class="navTwo" id="navSelfJudgement"><a href="https://2015.igem.org/Team:China_Tongji/Achivement?locationId=SelfJudgement">Self Judgement</a></li> |
+ | <li class="navTwo" id="navJudgingForm"><a href="https://igem.org/2015_Judging_Form?id=1634" target="_blank">Judging Form</a></li> | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="navOne" id="divTeam"><a class="navOneA" id="Team" href="https://2015.igem.org/Team:China_Tongji/Team">Team <img src="https://static.igem.org/mediawiki/2015/0/07/China_Tongji_2015_dropdown_arrow.png"></a> | <div class="navOne" id="divTeam"><a class="navOneA" id="Team" href="https://2015.igem.org/Team:China_Tongji/Team">Team <img src="https://static.igem.org/mediawiki/2015/0/07/China_Tongji_2015_dropdown_arrow.png"></a> | ||
<div class="navDrop"> | <div class="navDrop"> | ||
− | <li class="navTwo" id="navMembers"><a href="https://2015.igem.org/Team:China_Tongji/Team">Members</a></li> | + | <li class="navTwo" id="navMembers"><a href="https://2015.igem.org/Team:China_Tongji/Team?locationId=Members">Members</a></li> |
− | <li class="navTwo" id=" | + | <li class="navTwo" id="navAdvisor"><a href="https://2015.igem.org/Team:China_Tongji/Team?locationId=Advisor">Advisor</a></li> |
− | <li class="navTwo" id=" | + | <li class="navTwo" id="navInstructor"><a href="https://2015.igem.org/Team:China_Tongji/Team?locationId=Instructor">Instructor</a></li> |
− | <li class="navTwo" id="navSponsor"><a href="https://2015.igem.org/Team:China_Tongji/Team">Sponsor</a></li> | + | <li class="navTwo" id="navAttributions"><a href="https://2015.igem.org/Team:China_Tongji/Team?locationId=Attributions">Attributions</a></li> |
− | <li class="navTwo" id="navContact"><a href="https://2015.igem.org/Team:China_Tongji/Team">Contact</a></li> | + | <li class="navTwo" id="navSponsor"><a href="https://2015.igem.org/Team:China_Tongji/Team?locationId=Sponsor">Sponsor</a></li> |
+ | <li class="navTwo" id="navContact"><a href="https://2015.igem.org/Team:China_Tongji/Team?locationId=Contact">Contact</a></li> | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="navOne" id="divOutreach"><a class="navOneA" id="Outreach" href="https://2015.igem.org/Team:China_Tongji/Outreach">Outreach <img src="https://static.igem.org/mediawiki/2015/0/07/China_Tongji_2015_dropdown_arrow.png"></a> | <div class="navOne" id="divOutreach"><a class="navOneA" id="Outreach" href="https://2015.igem.org/Team:China_Tongji/Outreach">Outreach <img src="https://static.igem.org/mediawiki/2015/0/07/China_Tongji_2015_dropdown_arrow.png"></a> | ||
<div class="navDrop"> | <div class="navDrop"> | ||
− | <li class="navTwo" id="navHumanPractice"><a href="https://2015.igem.org/Team:China_Tongji/Outreach">Human Practice</a></li> | + | <li class="navTwo" id="navHumanPractice"><a href="https://2015.igem.org/Team:China_Tongji/Outreach?locationId=HumanPractice">Human Practice</a></li> |
− | <li class="navTwo" id="navCollaboration"><a href="https://2015.igem.org/Team:China_Tongji/Outreach">Collaboration</a></li> | + | <li class="navTwo" id="navCollaboration"><a href="https://2015.igem.org/Team:China_Tongji/Outreach?locationId=Collaboration">Collaboration</a></li> |
+ | <li class="navTwo" id="navQuestionare"><a href="https://2015.igem.org/Team:China_Tongji/Outreach?locationId=Questionare">Questionare</a></li> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 190: | Line 171: | ||
</div> | </div> | ||
+ | <!-- --------------- script code --------------- --> | ||
+ | <script type="text/javascript"> | ||
+ | jQuery(document).ready(function($){ | ||
+ | //单击导航栏后跳转到指定面 | ||
+ | $('#divHome').click(function(){ location.href="https://2015.igem.org/Team:China_Tongji"; }); | ||
+ | $('#divProject').click(function(){ location.href="https://2015.igem.org/Team:China_Tongji/Project"; }); | ||
+ | $('#divNotebook').click(function(){ location.href="https://2015.igem.org/Team:China_Tongji/Notebook"; }); | ||
+ | $('#divAchivement').click(function(){ location.href="https://2015.igem.org/Team:China_Tongji/Achivement"; }); | ||
+ | $('#divTeam').click(function(){ location.href="https://2015.igem.org/Team:China_Tongji/Team"; }); | ||
+ | $('#divOutreach').click(function(){ location.href="https://2015.igem.org/Team:China_Tongji/Outreach"; }); | ||
+ | $('#divSafety').click(function(){ location.href="https://2015.igem.org/Team:China_Tongji/Safety"; }); | ||
+ | |||
+ | //当前位置指示 | ||
+ | var keyWord = location.href.substring(38); | ||
+ | if( (keyWord.match("Project") != null) || (keyWord.match("Design") != null) ){ | ||
+ | document.getElementById("divProject").style.borderBottom = "4px solid #6D2E1A"; | ||
+ | }else if(keyWord.match("Notebook") != null){ | ||
+ | document.getElementById("divNotebook").style.borderBottom = "4px solid #6D2E1A"; | ||
+ | }else if( (keyWord.match("Achivement") != null) || (keyWord.match("Modeling") != null) ){ | ||
+ | document.getElementById("divAchivement").style.borderBottom = "4px solid #6D2E1A"; | ||
+ | }else if( (keyWord.match("Team") != null) || (keyWord.match("Attributions") != null) ){ | ||
+ | document.getElementById("divTeam").style.borderBottom = "4px solid #6D2E1A"; | ||
+ | }else if( (keyWord.match("Outreach") != null) || (keyWord.match("Practices") != null) || (keyWord.match("Collaborations") != null) ){ | ||
+ | document.getElementById("divOutreach").style.borderBottom = "4px solid #6D2E1A"; | ||
+ | }else if(keyWord.match("Safety") != null){ | ||
+ | document.getElementById("divSafety").style.borderBottom = "4px solid #6D2E1A"; | ||
+ | }else{ | ||
+ | document.getElementById("divHome").style.borderBottom = "4px solid #6D2E1A"; | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 20:50, 17 September 2015