perpetualshaun
03-16-2005, 08:10 AM
I am working on the admin for a client's site, and I'd like to add in the option where the table rows change color when you mouseover them. I've seen it on a few different sites, but each seemed to be using different methodologies. Does anyone know of one quick, concise way to do that?
I'd like to add the onMouseOver and onMouseOut commands in the <TR> tag, if possible. I am also using the CSS attribute class="bg1" or class="bg2" on my <TR> tags and then in my style sheet is have:
tr.bg1 td {
background-color: #e1e1e1;
border: 1px solid #ebebeb;
}
tr.bg2 td {
background-color: #fff;
border: 1px solid #ebebeb;
}
Anyone out there know some CSS / JavaScript combo I can add in to override the colors when one rolls the mouse over any cell in the row?
Thanks,
Shaun
I'd like to add the onMouseOver and onMouseOut commands in the <TR> tag, if possible. I am also using the CSS attribute class="bg1" or class="bg2" on my <TR> tags and then in my style sheet is have:
tr.bg1 td {
background-color: #e1e1e1;
border: 1px solid #ebebeb;
}
tr.bg2 td {
background-color: #fff;
border: 1px solid #ebebeb;
}
Anyone out there know some CSS / JavaScript combo I can add in to override the colors when one rolls the mouse over any cell in the row?
Thanks,
Shaun