Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
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 = "block";
 
-
}else{
 
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;
}
}
-
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;
 
}
}

Revision as of 14:46, 17 October 2014