Team:Cornell/templates/wetnav
From 2013.igem.org
(Difference between revisions)
Line 65: | Line 65: | ||
{ document.getElementById("liChassis").className="active"; } | { document.getElementById("liChassis").className="active"; } | ||
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit") | else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit") | ||
- | { document.getElementById("liFungalToolkit").className="active"; } | + | { var liFT = document.getElementById("liFungalToolkit") |
+ | liFT.className="active"; | ||
+ | var childLi = liFT.children[0].children; | ||
+ | for(var i = 0; i < childLi.length; i++) { childLi[i].className="inactive"; } | ||
+ | } | ||
else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit/regulatory_elements") | else if(h=="https://2013.igem.org/Team:Cornell/project/wetlab/fungal_toolkit/regulatory_elements") | ||
{ document.getElementById("liRegulatoryElements").className="active"; } | { document.getElementById("liRegulatoryElements").className="active"; } |
Revision as of 19:53, 25 September 2013