Basically all I need to do is add a timeout to the onmouseout function, but have thus far had no luck
e.g. the_timeout = setTimeout(this.className=this.className.replace(new RegExp(" sfhover\\b"), ""), 1000);
See the full script below. Many Thanks... again!!
sfHover = function() {
var sfEls = document.getElementById("Nav_A").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls.onmouseover=function() {
this.className+=" sfhover";
}
sfEls.onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
e.g. the_timeout = setTimeout(this.className=this.className.replace(new RegExp(" sfhover\\b"), ""), 1000);
See the full script below. Many Thanks... again!!
sfHover = function() {
var sfEls = document.getElementById("Nav_A").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls.onmouseover=function() {
this.className+=" sfhover";
}
sfEls.onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);