Rev | Line | |
---|
[1] | 1 | // JavaScript Document |
---|
| 2 | |
---|
| 3 | startList = function() { |
---|
| 4 | if (document.all&&document.getElementById) { |
---|
| 5 | navRoot = document.getElementById("nav"); |
---|
| 6 | for (i=0; i<navRoot.childNodes.length; i++) { |
---|
| 7 | node = navRoot.childNodes[i]; |
---|
| 8 | if (node.nodeName=="LI") { |
---|
| 9 | node.onmouseover=function() { |
---|
| 10 | this.className+=" over"; |
---|
| 11 | } |
---|
| 12 | node.onmouseout=function() { |
---|
| 13 | this.className=this.className.replace(" over", ""); |
---|
| 14 | } |
---|
| 15 | } |
---|
| 16 | } |
---|
| 17 | } |
---|
| 18 | } |
---|
| 19 | window.onload=startList; |
---|
Note: See
TracBrowser
for help on using the repository browser.