I keep getting an object expected error when I try to run the following function:
function navLinkOver(num) {
var hex=255;
//If color is not grey yet
if(hex>204) {
hex += 11; // increase color darkness
document.getElementById(num).style.color="rgb("+hex+","+hex+","+hex+")";
setTimeout("navLinkOver(" + num + ")",20);
} else {
hex=204 //reset hex value
}
}
Does anyone have an idea of what the problem is? If you want to see it in action, http://www.vip3r.com . There you can see the error I’m talking about.
Thanks in advance!