HTML help "onmouseover"

Homerboy

Lifer
Mar 1, 2000
30,890
5,001
126
I want to do a row change onmouseover, but I want to make the background change to a specific class... something like:

<tr onmouseover="this.bgColor=class='rollover'" onmouseout="this.bgColor=''">

where rollver is defined in the CSS as:

.rollover {background-color: #FF0000
}

but its not working.
Im sure the code is totally wrong, but I cant figure it out
Any help would be appreciated.
 

Jeraden

Platinum Member
Oct 9, 1999
2,518
1
76
if you want to change class on the fly, you need do this.className="rollover"

then when you mouseout, this.className="";