Team:Heidelberg/Templates/StartPage
From 2013.igem.org
(Difference between revisions)
JuliaS1992 (Talk | contribs) m |
JuliaS1992 (Talk | contribs) m |
||
Line 34: | Line 34: | ||
} | } | ||
var navi_links = document.getElementById("navigation-bar").getElementsByTagName("A"); | var navi_links = document.getElementById("navigation-bar").getElementsByTagName("A"); | ||
+ | alert(navi_links.length); | ||
for (var i = 0; i < navi_links.length; i++) { | for (var i = 0; i < navi_links.length; i++) { | ||
if (document.documentURI.indexOf(navi_links[i].href) !== -1) { | if (document.documentURI.indexOf(navi_links[i].href) !== -1) { | ||
navi_links[i].class = "navi-highlight"; | navi_links[i].class = "navi-highlight"; | ||
+ | alert("found link"); | ||
break; | break; | ||
} | } |
Revision as of 14:47, 17 August 2013