ScottInTexas
10-20-2003, 04:39 PM
There is absolutely nothing wrong with this.
function colorit(which){
which.style.color='red';
}
function uncolorit(which){
which.style.color='blue';
}
But it wont work. I have put alerts in them and they are being called. color is the real name of the property which is a property of the style.
If I use #FF0000 instead of red I get an 'invalid character' error.
Did I mispell which or something?
function colorit(which){
which.style.color='red';
}
function uncolorit(which){
which.style.color='blue';
}
But it wont work. I have put alerts in them and they are being called. color is the real name of the property which is a property of the style.
If I use #FF0000 instead of red I get an 'invalid character' error.
Did I mispell which or something?