Template:Kyoto/js
From 2012.igem.org
(Difference between revisions)
Line 15: | Line 15: | ||
} | } | ||
document.getElementById(tabname).style.display = "block"; | document.getElementById(tabname).style.display = "block"; | ||
+ | } | ||
+ | function showTabOfIndex(index) { | ||
+ | var contents = document.getElementById("kyoto-tab-contents").getElementByTagName("div"); | ||
+ | alert(contents.length); | ||
+ | var tabs = document.getElementById("kyoto-tabs").childNodes; | ||
+ | for (var i = 0; i < children.length; i++) { | ||
+ | children[i].style.display = "none"; | ||
+ | |||
+ | } | ||
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 04:08, 26 September 2012