D
delerious
I have a page with a table. In a CSS file I have defined the TDs to have a
blue background color. The TDs also have a 'onMouseOver' function that
changes the background color to green, and a 'onMouseOut' function that
changes it back to blue. I currently have the 'onMouseOut' function just set
the background color to blue. I'm wondering if I can somehow have it refer to
the background color that is in the CSS file? That way if I change the color
in the CSS file, I won't have to change it in the javascript too.
blue background color. The TDs also have a 'onMouseOver' function that
changes the background color to green, and a 'onMouseOut' function that
changes it back to blue. I currently have the 'onMouseOut' function just set
the background color to blue. I'm wondering if I can somehow have it refer to
the background color that is in the CSS file? That way if I change the color
in the CSS file, I won't have to change it in the javascript too.