How would i go about creating this?


I have a table, within each cell there is an image spacer set to 20 x 20 px
the same dimensions of the cell, what i neeed to do is create a way of
setting a variable in php/javascript whatever, that changes depending on
which spacer is clicked on.

ie

if a spacer image with a cell bg colour of #000000 was clicked on it would
set say $myVar = #000000, i dont want to hard code this so a little snippet
of javascript would be ideal...(as in one that could be inserted into each
cells HTML.


Cheers all...

Richard Cook