Team:Cornell/templates/outnav

From 2013.igem.org

(Difference between revisions)
Line 28: Line 28:
<script>
<script>
var h=window.location.href.toString()
var h=window.location.href.toString()
-
if(h=="https://2013.igem.org/Team:Cornell/outreach")
+
if(h.substring("https://2013.igem.org/Team:Cornell/outreach") != -1)
{ document.getElementById("liOverview").className="active"; }
{ document.getElementById("liOverview").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/outreach/presentations")
+
else if(h.substring("https://2013.igem.org/Team:Cornell/outreach/presentations") != -1)
{ document.getElementById("liPresentations").className="active"; }
{ document.getElementById("liPresentations").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/outreach/discussions")
+
else if(h.substring("https://2013.igem.org/Team:Cornell/outreach/discussions") != -1)
{ document.getElementById("liDiscussions").className="active"; }
{ document.getElementById("liDiscussions").className="active"; }
-
else if(h=="https://2013.igem.org/Team:Cornell/outreach/awareness")
+
else if(h.substring("https://2013.igem.org/Team:Cornell/outreach/awareness") != -1)
{ document.getElementById("liAwareness").className="active"; }
{ document.getElementById("liAwareness").className="active"; }
</script>
</script>
</html>
</html>

Revision as of 23:44, 26 September 2013