Hi, this code works only with ie, can anyone make it work with other browsers as well?.
<SCRIPT language="JavaScript">
<!--
function bcolor(bcol,d_name)
{
if (document.all)
{
var thestyle= eval ('document.all.'+d_name+'.style');
thestyle.backgroundColor=bcol;
}
}
//-->
</SCRIPT>
<TABLE width="200" border="1" cellspacing="0" cellpadding="0">
<TR>
<TD ID="td1" style="width:50%; background-color:lightblue"
onMouseover="bcolor('yellow','td1');"
onMouseout="bcolor('lightblue','td1');">
This goes to Yellow
</TD>
<TD ID="td2" style="width:50%; background-color:lightblue"
onMouseover="bcolor('red','td2');"
onMouseout="bcolor('lightblue','td2');">
This goes to Red
</TD>
</TR>
</TABLE>
Thanks for reading!



Reply With Quote

Bookmarks