Template:Team:HKU-HKBU/script.js

From 2009.igem.org

(Difference between revisions)
Line 189: Line 189:
   for (var i = 0; i < aNodes.length; i++) {
   for (var i = 0; i < aNodes.length; i++) {
     if (aNodes[i].attributes.getNamedItem("href").value == document.URL) {
     if (aNodes[i].attributes.getNamedItem("href").value == document.URL) {
-
       aNodes[i].firstChild.style.backgroundColor="#FFFFFF";
+
       aNodes[i].setAttribute("id", "current");
     }
     }
   }
   }

Revision as of 12:02, 18 October 2009