PDA

View Full Version : mouseover and css


[ArcanE]
11-05-2002, 05:59 AM
Hi,

I got a q.

i got a css file with 2 styles defined for a table cell namely "Class A" and "Class B"

Now i wanna set it so that when the mouse goes over the table cell its class switches to "Class B" and when the mouse goes out it switches back to "Class A"

I know this can be done with javascript but can anyone tell me how?

regards ... Chris

kdjoergensen
11-05-2002, 09:58 AM
<td onmouseover="this.style.className='classA'" onmouseout="this.style.className='classB'">