Template:CSS/UT-Tokyo/Counter/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 515: | Line 515: | ||
if(clnode.childNodes[0].childNodes[0].src.indexOf("open") != -1){ | if(clnode.childNodes[0].childNodes[0].src.indexOf("open") != -1){ | ||
- | |||
- | |||
clnode.childNodes[2].style.display = "none"; | clnode.childNodes[2].style.display = "none"; | ||
+ | var temp = clnode.childNodes[0].childNodes[0].src; | ||
+ | clnode.childNodes[0].childNodes[0].src = clnode.childNodes[0].childNodes[0].alt; | ||
+ | clnode.childNodes[0].childNodes[0].alt = temp; | ||
} | } | ||
- | |||
- | |||
- | |||
} | } | ||