Template:Team:HKU-HKBU/script.js

From 2009.igem.org

(Difference between revisions)
Line 180: Line 180:
         el.removeChild(childNode);
         el.removeChild(childNode);
       }
       }
 +
    }
 +
  }
 +
}
 +
 +
function modifyTopBar(){
 +
  var el    = document.getElementById("tabs");
 +
  var aNodes = document.getElementsByTagName("a");
 +
  for (var i = 0; i < aNodes.length; i++) {
 +
    if (aNodes[i].attributes.getNamedItem("href").value == document.URL) {
 +
      aNodes[i].style.backgroundColor="#FFFFFF";
     }
     }
   }
   }

Revision as of 11:33, 18 October 2009