Charl van Niekerk
By: a guest | Mar 12th, 2009 | Syntax:
JavaScript | Size: 0.41 KB | Hits: 16 | Expires: Never
var ids = array("engine-front", "masterpieces-front", "soul-front");
for (var j = 0; j < ids.length; j++) {
var sfEls = document.getElementById(ids[j]).getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}