• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

HTML help "onmouseover"

Homerboy

Lifer
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.
 
if you want to change class on the fly, you need do this.className="rollover"

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