branch | wordpress |
changeset 109 | 03b0d1493584 |
-1:000000000000 | 109:03b0d1493584 |
---|---|
1 navHover = function() { |
|
2 var lis = document.getElementById("navmenu-h").getElementsByTagName("LI"); |
|
3 for (var i=0; i<lis.length; i++) { |
|
4 lis[i].onmouseover=function() { |
|
5 this.className+=" iehover"; |
|
6 } |
|
7 lis[i].onmouseout=function() { |
|
8 this.className=this.className.replace(new RegExp(" iehover\\b"), ""); |
|
9 } |
|
10 } |
|
11 } |
|
12 if (window.attachEvent) window.attachEvent("onload", navHover); |