Constant

M

M.Siler

I do this thing with tables where if the user mouses over the table the row
changes color while they are move that row. Is there a way that I can
reference the color via constant and not the hex color as in the example
below:

<tr bgcolor="#EBD5B3" onMouseOver="javascript:style.background='#FBE5C3'"
onMouseOut="javascript:style.background='#EBD5B3'">

Something like this:

<tr bgcolor="row_normal"
onMouseOver="javascript:style.background='row_selected'"
onMouseOut="javascript:style.background='row_normal">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top