metacat/lib/style/skins/parc/navigation.js @ 5339
1 | 5129 | cjones | sfHover = function() { |
---|---|---|---|
2 | var sfEls = document.getElementById("main_nav").getElementsByTagName("li"); |
||
3 | |||
4 | for (var i=0; i<sfEls.length; i++) { |
||
5 | sfEls[i].onmouseover=function() { |
||
6 | this.className+=" sfhover"; |
||
7 | }
|
||
8 | sfEls[i].onmouseout=function() { |
||
9 | this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); |
||
10 | }
|
||
11 | }
|
||
12 | }
|
||
13 | |||
14 | if (window.attachEvent) window.attachEvent("onload", sfHover); |