I have a table with a div tag which is generated through javascript. Now the problem is that i want to change the cell color on mouse over but nothing seems to happen in Netscape. I'm using Netscape 4.74. The code is as follows.
Please help.
function changeColor()
{
document.write("<span id=dropmenu0 style='position:absolute;left:10px;top:0px;width:200pt; border-style:solid; border-width: 2pt; border-color:black; font-weight:bold; visibility:visible;'"
document.write("<table border='1' cellpadding='0' cellspacing='0' >"
for (i=0;i < 9;i++)
{
estr="<tr><td align='left' style='background-color:#CCCCCC;' onmouseover=this.style.bgcolor='#FF0000' onmouseout=this.style.bgcolor='#CCCCCC'>"
printstr = estr+'</a></td></tr>'
document.write(printstr)
}
document.write('</table>')
document.write("</span>"
}
Please help.
function changeColor()
{
document.write("<span id=dropmenu0 style='position:absolute;left:10px;top:0px;width:200pt; border-style:solid; border-width: 2pt; border-color:black; font-weight:bold; visibility:visible;'"
document.write("<table border='1' cellpadding='0' cellspacing='0' >"
for (i=0;i < 9;i++)
{
estr="<tr><td align='left' style='background-color:#CCCCCC;' onmouseover=this.style.bgcolor='#FF0000' onmouseout=this.style.bgcolor='#CCCCCC'>"
printstr = estr+'</a></td></tr>'
document.write(printstr)
}
document.write('</table>')
document.write("</span>"
}