Team:Heidelberg/Templates/StartPage
From 2013.igem.org
(Difference between revisions)
JuliaS1992 (Talk | contribs) m |
JuliaS1992 (Talk | contribs) m |
||
Line 18: | Line 18: | ||
if (document.documentURI.indexOf(navi_links[i].href) !== -1) { | if (document.documentURI.indexOf(navi_links[i].href) !== -1) { | ||
navi_links[i].className = "navi-highlight"; | navi_links[i].className = "navi-highlight"; | ||
+ | var element = navi_link[i]; | ||
+ | while (element.parentNode.tagName == "UL") { | ||
+ | var element = element.parentNode; | ||
+ | element.style.backgroundColor = "red"; | ||
break; | break; | ||
} | } |
Revision as of 14:16, 19 August 2013