Template:Team:HKU-HKBU/script.js
From 2009.igem.org
(Difference between revisions)
Line 187: | Line 187: | ||
var el = document.getElementById("tabs"); | var el = document.getElementById("tabs"); | ||
var aNodes = document.getElementsByTagName("a"); | var aNodes = document.getElementsByTagName("a"); | ||
- | + | for (var i = 0; i < aNodes.length; i++) { | |
- | + | if (aNodes[i].attributes.getNamedItem("id").value == 3) { | |
- | + | aNodes[i].style.backgroundPosition="0% -42px"; | |
- | + | var sNode = aNodes[i].getElementsByTagName("span")[0]; | |
- | + | sNode.style.backgroundPosition="100% -42px"; | |
+ | } | ||
} | } | ||
- | |||
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 12:13, 18 October 2009