问题是什么?是不是这样
<SCRIPT language="javascrpit">
function outwrite(){
document.write ('#489840');
}
//-->
</SCRIPT><table width="100%" border="1">
  <tr>
    <td onmouseover='bgColor="javascript:return outwrite();"' onmouseout='bgColor=""'>&nbsp;</td>
  </tr>
</table>

解决方案 »

  1.   

    <table width="100%" border="1">
      <tr>
        <td onmouseover="thid.bgColor=#489840" onmouseout="this.bgColor=''">&nbsp;</td>
      </tr>
    </table>
      

  2.   

    <table width="100%" border="1">
      <tr>
        <td onmouseover="this.bgColor=#489840" onmouseout="this.bgColor=''">&nbsp;</td>
      </tr>
    </table>
      

  3.   

    没有任何事件触发,让html解析到return outwrite();"的时候,自己变颜色