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