Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Change a TD Background-color with JavaScript?


Gusgsm - 2:11 pm on Dec 10, 2002 (gmt 0)


Well, somehow it is but it's not that: It's a table with 16 cells. Each one has one colour. Some of them can be printed in a printing press and some, cannot.

The idea is that when the user passes the mouse over a non-printable colour, all non printable colours turn white, and when the mouse goes "out", they revert to their previous colour. So the user can learn the difference between them.

As I said, I think this can be achieved altering a class attributes. But I just know how to change an element with an "id='joe'" not a "class='joe'".

Any idea, please :)


Thread source:: http://www.webmasterworld.com/javascript/241.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com