Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 512: Line 512:
function close(name){
function close(name){
-
var node = document.getElementById(name);
+
var clnode = document.getElementById(name);
-
if(node.childNodes[0].childNodes[0].src.indexOf("open") != -1){
+
if(clnode.childNodes[0].childNodes[0].src.indexOf("open") != -1){
-
node.childNodes[2].style.display = "block";
+
clnode.childNodes[2].style.display = "block";
}else{
}else{
-
node.childNodes[2].style.display = "none";
+
clnode.childNodes[2].style.display = "none";
}
}
-
var temp = node.childNodes[0].childNodes[0].src;
+
var temp = clnode.childNodes[0].childNodes[0].src;
-
node.childNodes[0].childNodes[0].src = node.childNodes[0].childNodes[0].alt;
+
clnode.childNodes[0].childNodes[0].src = clnode.childNodes[0].childNodes[0].alt;
-
node.childNodes[0].childNodes[0].alt = temp;
+
clnode.childNodes[0].childNodes[0].alt = temp;
}
}

Revision as of 14:43, 17 October 2014