No problem. I'll post some of my exact code. Have you tried these examples you have given? I've tested in FF and IE and no bueno.
snipped from my css file:
Code:
#new td
{
background-color:#99CCFF;
}
snippet from my html template ({bgcolor} is either #efefef or #ffffff):
HTML Code:
<tr id="new" onmouseover="bgcolor(this,'#FFFFCC');" onmouseout="bgcolor(this,'{bgcolor}');">
<td id="date">{date}</td>
<td id="from">{from}</td>
<td id="message">{message}</td>
<td id="reply">--</td>
<td id="delete"><input type="checkbox" name="d[]" value="{id}" /></td>
</tr>
my js function bgcolor() ( i have tried writing this function with getElementById and many other different ways, this is just the most recent way i've tried ):
Code:
function bgcolor ( what, color )
{
what.style.backgroundColor = color;
}
I will note again that if I don't use the stylesheet to set the background-color, this function works perfect.
|