Team:Cornell/templates/hpracnav

From 2013.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
Line 23: Line 23:
<li id="liEthics">
<li id="liEthics">
<a href="https://2013.igem.org/Team:Cornell/project/hprac/ethics">Bioethics</a>
<a href="https://2013.igem.org/Team:Cornell/project/hprac/ethics">Bioethics</a>
-
</li>
 
-
<li id="liFuture">
 
-
<a href="https://2013.igem.org/Team:Cornell/project/hprac/future">Future Applications</a>
 
</li>
</li>
<li id="liSafety">
<li id="liSafety">
Line 39: Line 36:
if(h=="https://2013.igem.org/Team:Cornell/project/hprac")
if(h=="https://2013.igem.org/Team:Cornell/project/hprac")
{ document.getElementById("liOverview").className="active"; }
{ document.getElementById("liOverview").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/hprac/ecovative")
+
else if(h.indexOf("project/hprac/ecovative") != -1)
{ document.getElementById("liEcovative").className="active"; }
{ document.getElementById("liEcovative").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/hprac/economics")
+
else if(h.indexOf("project/hprac/economics") != -1)
{ document.getElementById("liEconomics").className="active"; }
{ document.getElementById("liEconomics").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/hprac/environment")
+
else if(h.indexOf("project/hprac/environment") != -1)
{ document.getElementById("liEnvironment").className="active"; }
{ document.getElementById("liEnvironment").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/hprac/ethics")
+
else if(h.indexOf("project/hprac/ethics") != -1)
{ document.getElementById("liEthics").className="active"; }
{ document.getElementById("liEthics").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/project/hprac/future")
+
else if(h.indexOf("project/safety") != -1)
-
{ document.getElementById("liFuture").className="active"; }
+
-
else if(h=="https://2013.igem.org/Team:Cornell/project/safety")
+
{ document.getElementById("liSafety").className="active"; }
{ document.getElementById("liSafety").className="active"; }
</script>
</script>
</html>
</html>

Latest revision as of 03:04, 28 September 2013