no it will not but this will. And i put a little error trapping in as well
PHP Code:
<script type="text/javascript">
function alter(what,col)
{
try
{
(what != null)? what.style.background = col : null;
}
catch(errorObject)
{
alert('what is not an obj\t error = ' + errorObject.description);
}
}
</script>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="20%" onMouseOver="alter(this, 'orange')" onMouseOut="alter(this, '')">1</td>
<td width="20%" onMouseOver="alter(this, 'orange')" onMouseOut="alter(this, '')">4</td>
</tr>
<tr>
<td width="20%" onMouseOver="alter(this, 'orange')" onMouseOut="alter(this, '')">2</td>
<td width="20%" onMouseOver="alter(this, 'orange')" onMouseOut="alter(this, '')">5</td>
</tr>
<tr>
<td width="20%" onMouseOver="alter(this, 'orange')" onMouseOut="alter(this, '')">3</td>
<td width="20%" onMouseOver="alter(this, 'orange')" onMouseOut="alter(this, '')">6</td>
</tr>
</table>
Bookmarks