Skip to content

Instantly share code, notes, and snippets.

@OscarGodson
Created April 13, 2013 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OscarGodson/7fd4ab5ecbbd10b397cd to your computer and use it in GitHub Desktop.
Save OscarGodson/7fd4ab5ecbbd10b397cd to your computer and use it in GitHub Desktop.
startList = function() {
if (document.all&&document;.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i;
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;
@gion
Copy link

gion commented Jun 7, 2013

Hi, I'm coming from your blogpost.
Are you sure that line #2 was correct in those days? I mean the part with document;.getElementById?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment