Menu
Hey guys!
I inplicitly set the background-color of a paragraph using the style attribute at the beginning of a page.
Now in a function, I want it to flash, so I used:
[code]
(bar.style.backgroundColor==”#000000″)?bar.style.backgroundColor=”#ffffff”:bar.style.backgroundColor=”#000000″;
…inside a setInterval statement, and it wasn’t working.
I then decided to: alert(bar.style.backgroundColor==”#000000″), and it came back with “rgb(0,0,0)”.
Why rgb, when there isn’t even a javascript rgb() function?
Thanks.
CM