source:
themes/cta/scripts/menus.js
@
7
Last change on this file since 7 was 1, checked in by , 18 years ago | |
---|---|
File size: 446 bytes |
Line | |
---|---|
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.