Template:Kyoto/js
From 2012.igem.org
(Difference between revisions)
Line 16: | Line 16: | ||
document.getElementById(tabname).style.display = "block"; | document.getElementById(tabname).style.display = "block"; | ||
} | } | ||
- | function showTabOfIndex( | + | function showTabOfIndex(self) { |
- | + | ||
- | + | ||
- | + | ||
var tabs = document.getElementById("kyoto-tabs").childNodes; | var tabs = document.getElementById("kyoto-tabs").childNodes; | ||
- | + | var contents = document.getElementById("kyoto-tab-contents").childNodes; | |
- | + | var i; | |
- | + | for (i = 0; i < tabs.length; i++) { | |
+ | if (tabs[i].nodeType == 1) tabs[i].style.zIndex = 99; | ||
} | } | ||
- | + | self.style.zIndez = 101; | |
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 04:23, 26 September 2012