Template:CSS/UT-Tokyo/Counter/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 512: | Line 512: | ||
function close(name){ | function close(name){ | ||
- | var | + | var clnode = document.getElementById(name); |
- | if( | + | if(clnode.childNodes[0].childNodes[0].src.indexOf("open") != -1){ |
- | + | clnode.childNodes[2].style.display = "block"; | |
}else{ | }else{ | ||
- | + | clnode.childNodes[2].style.display = "none"; | |
} | } | ||
- | var temp = | + | 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; | |
} | } | ||