Hello, I have tried to modify the JavaScript from the [url=”http://www.alistapart.com/articles/dropdowns/”]suckerfish dropdowns
[code=php]startList = function() {
if (document.all&&document.getElementById) {
for (i=0; i<document.childNodes.length; i++) {
node = document.childNodes[i];
if (node.nodeName==”input”) {
node.onfocus=function() {
this.className+=” focus”;
}
node.onblur=function() {
this.className=this.className.replace(” focus”, “”);
}
}
}
}
}
window.onload=startList;
And this is the CSS to go along with it:
[code]input:focus, input.focus {
………styles go in here……..
}
However, it still does not work in IE. What is wrong with my JavaScript?