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 < | + | for (var i = 0; i < 7; i++) { |
if (aNodes[i].getAttribute("href").value == document.URL) { | if (aNodes[i].getAttribute("href").value == document.URL) { | ||
aNodes[i].style.backgroundPosition="0% -42px"; | aNodes[i].style.backgroundPosition="0% -42px"; |
Revision as of 12:24, 18 October 2009