Line | |
---|
1 | //son of a suckerfish dropdown - http://htmldog.com/articles/suckerfish/dropdowns/
|
---|
2 |
|
---|
3 | sfHover = function() {
|
---|
4 | var sfEls = document.getElementById("nav").getElementsByTagName("LI");
|
---|
5 | for (var i=0; i<sfEls.length; i++) {
|
---|
6 | sfEls[i].onmouseover=function() {
|
---|
7 | this.className+=" sfhover";
|
---|
8 | }
|
---|
9 | sfEls[i].onmouseout=function() {
|
---|
10 | this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
|
---|
11 | }
|
---|
12 | }
|
---|
13 | }
|
---|
14 | if (window.attachEvent) window.attachEvent("onload", sfHover);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.