Table selection highlight

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a table with onclick color settings for each <td>. I want to change
the color of the table data. This works ok. But now I want to change the
color back when I click on another <td>. I tried putting a onclick color in
the main table but this does not work. Any ideas?


Re: Table selection highlight

Also sprach Steve West:

Quoted text here. Click to load it

Store the id of the clicked element in a variable: Upon each click event,
check if that variable is set, and if so, reset the corresponding color.
Then set the variable to the current element and change its color.

Alternative: onfocus=";"
onblur=";" (untested)

Site Timeline