Using IE 6/7/8, I receive a JavaScript error code.
The line of code is:
document.getElementById('all').style.backgroundColor = color;
The IE 6/7/8 is:
Invalid property value
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you running this code after the DOM is completely loaded? Perhaps there is no ‘panel-hlisting-all’ yet? If you’re using Prototype, you might try:
Just a thought — and I have no way of testing it on IE (thankfully/unfortunately), but what if you tried:
Added:
Also note that
colormust be a string containing a valid CSS color (#FFFFFF,rgb(255,255,255),rgba(255,255,255,1)).