Template:UCSF/Nav
From 2010.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<ul id = "UL"> | <ul id = "UL"> | ||
- | <li class=" | + | <li class="" id="home"><a href="https://2010.igem.org/Team:UCSF">Home</a></li> |
- | <li class=" | + | <li class="sub-nav"><a href="https://2010.igem.org/Team:UCSF/Team">Team</a> |
<ul> | <ul> | ||
<li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Team/Students" title="">Students</a></li> | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Team/Students" title="">Students</a></li> | ||
Line 14: | Line 14: | ||
</ul></li> | </ul></li> | ||
- | <li class=" | + | <li class="sub-nav"><a href="https://2010.igem.org/Team:UCSF/Project">Project</a><ul> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Project/Abstract" title="">Overview</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Project/Background_Info" title="">Background Info</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Project/Project_Aims" title="">Project Aims</a></li> |
<li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Project/Future_Implications" title="">Future Implications</a></li> | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Project/Future_Implications" title="">Future Implications</a></li> | ||
<li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/References">References</a></li> | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/References">References</a></li> | ||
Line 23: | Line 23: | ||
- | <li class=" | + | <li class=""><a href="https://2010.igem.org/Team:UCSF/Protocols">Protocols</a></li> |
- | <li class=" | + | <li class=""><a href="https://2010.igem.org/Team:UCSF/Parts">Parts</a></li> |
- | <li class=" | + | <li class=""><a href="https://2010.igem.org/Team:UCSF/Gold_and_Silver_Medal_Requisite">Judging Form</a></li> |
- | <li class=" | + | <li class="sub-nav"><a href="https://2010.igem.org/Team:UCSF/Notebook">Notebook</a><ul> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Team/Notebook/Ryan_Liang" title="">Ryan Liang</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Notebook/Ethan_Chan" title="">Ethan Chan</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Notebook/Eric_Wong" title="">Eric Wong</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Notebook/Carmen_Zhou" title="">Carmen Zhou</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Notebook/Lianna_Fung" title="">Lianna Fung</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Notebook/Connor_Grant" title="">Connor Grant</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Notebook/Hannah Yan" title="">Hannah Yan</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Notebook/John Elam" title="">John Elam</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Notebook/Crystal_Liu" title="">Crystal Liu</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Notebook/Sam_Zorn" title="">Sam Zorn</a></li> |
- | <li class="cat-item | + | <li class="cat-item"><a href="https://2010.igem.org/Team:UCSF/Notebook/Min_Lin" title="">Min Lin</a></li> |
</ul></li> | </ul></li> | ||
- | <li class=" | + | <li class=""><a href="http://mac.appstorm.net/category/general/">Safety</a></li> |
- | <li class=" | + | <li class=""><a href="http://mac.appstorm.net/about/">Human Practice</a></li> |
- | <li class=" | + | <li class=""><a href="http://mac.appstorm.net/about/">Gallery</a></li> |
<!--<li class="right"><script>writeHref();</script>Edit</a></li>--> | <!--<li class="right"><script>writeHref();</script>Edit</a></li>--> | ||
<!--<li class="right"><a href="https://igem.org/Login">Log in</a></li>--> | <!--<li class="right"><a href="https://igem.org/Login">Log in</a></li>--> | ||
Line 54: | Line 54: | ||
<script> | <script> | ||
+ | function setActive(){ | ||
+ | if(document.URL=="http:\/\/2010.igem.org\/Team:UCSF"){ | ||
+ | var HOME = document.getElementById('home'); | ||
+ | HOME.className+="active"; | ||
+ | return; | ||
+ | } | ||
var UL = document.getElementsByTagName('li'); | var UL = document.getElementsByTagName('li'); | ||
for(var i=0;i<UL.length;i++){ | for(var i=0;i<UL.length;i++){ | ||
+ | if(UL.id=="home"){continue;} | ||
var iHTML = UL[i].innerHTML; | var iHTML = UL[i].innerHTML; | ||
var hrefReg = /http:[^"]+/; | var hrefReg = /http:[^"]+/; | ||
Line 61: | Line 68: | ||
if(document.URL.indexOf(REF)==0){ | if(document.URL.indexOf(REF)==0){ | ||
UL[i].className+=" active"; | UL[i].className+=" active"; | ||
+ | } | ||
+ | else{UL[i].className+=" not-active";} | ||
} | } | ||
} | } |
Revision as of 04:51, 10 October 2010