Template:Kyoto/js
From 2012.igem.org
(Difference between revisions)
Line 8: | Line 8: | ||
function showTab(tabname) { | function showTab(tabname) { | ||
- | var children = document.getElementById("kyoto-tab-contents").childNodes; | + | var children = document.getElementById("kyoto-tab-contents").childNodes; |
- | for (var i = 0; i < children.length; i++) { | + | for (var i = 0; i < children.length; i++) { |
- | if (children[i].nodeType == 1) children[i].style.display = "none"; | + | if (children[i].nodeType == 1) children[i].style.display = "none"; |
- | } | + | } |
- | document.getElementById(tabname).style.display = "block"; | + | document.getElementById(tabname).style.display = "block"; |
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 20:56, 25 September 2012