Posted By

wbednarski on 10/24/06


Tagged

css javascript ie textmate


Versions (?)

ie:hover


 / Published in: Other
 

  1. startList = function() {
  2. if (document.all&&document.getElementById) {
  3. navRoot = document.getElementById("nav");
  4. for (i=0; i<navRoot.childNodes.length; i++) {
  5. node = navRoot.childNodes[i];
  6. if (node.nodeName=="LI") {
  7. node.onmouseover=function() {
  8. this.className+=" over";
  9. }
  10. node.onmouseout=function() {
  11. this.className=this.className.replace(" over", "");
  12. }
  13. }
  14. }
  15. }
  16. }
  17. window.onload=startList;

Report this snippet  

You need to login to post a comment.