Click to See Complete Forum and Search --> : cell rollovers


felipe
08-28-2003, 08:59 AM
Having a problem with cell rollovers on a webpage. Currently I have this:

<td width="139" align="center" bgcolor="#7390BA" onmouseover="this.style.backgroundColor='#0099ff';; return false;" onmouseout="this.style.backgroundColor='#7390BA'">

but

What I want to do is replace the hex colour values with a class, which is defined in the stylesheet. For example, onmouseover I would like the class shadow to be used instead of #0099ff. I've tried a few things but to no avail! Anyone got any ideas???

Thanks!

:confused:

Khalid Ali
08-28-2003, 09:23 AM
this.className ='className'


should do the trick for you