var thetd = document.getElementById('td'); //or whatever
td.style.backgroundColor = 'color' //pretty sure this works
or
td.style.setAttribute('background-color', 'color'); // sure this works
function changeColor(item, color)
{
//I HATE IE!!!!!!!!!!!!
var name = /Explorer/;
if(name.test(navigator.appName))
{
//first off all you should get a real browser http://www.mozilla.org
//is a good place to start
item.style.setAttribute('background', color);
}
else
item.setAttribute('style', 'background: ' + color);
}
andehlu said:right on... <td bgcolor="#666666" onMouseOver="this.style.backgroundColor='#cccccc'" onMouseOut="this.style.backgroundColor='#666666'"> </td>
seems to work on safari, firefox on mac and IE pc... thanks hateeternal.