set up css classes for the two looks that you want, then
<TD CLASS="class1" ONMOUSEOVER="this.className='class2'"
ONMOUSEOUT="this.className='class1'">
-----Original Message-----
From: Greg Griffiths [mailto:griffiths@x...]
Sent: 15 August 2001 20:22
To: JavaScript HowTo
Subject: [javascript_howto] Re: Dynamically change table cell color AND
font color?
should be, although I suspect that you will need to use CSS as well as
Javascript for this one, so it may or may not work in all browsers.
At 22:13 13/08/01 +0000, you wrote:
>How do you change the table cell background color AND the font color
>dyanmically when you move the mouse over the cell?
>
>I've seen samples where the cell changes color, but the font doesn't
>change color until you move over it. I'd like to be able to move the mouse
>of the cell and when the cell color changes, the font color changes with
>it.
>
>Is this possible?
>
>(without images)
>
>Thanks,
>-Gregory Reddin