<html>
  <head>
    <title></title>   
  <script language="javascript">
  <!--
  //编写事件函数,当鼠标移进表格时候,将红色单元格的背景色变为蓝色
  //当鼠标移出表格时,恢复为红色 
  -->
  </script> 
  </head>
  <body>
    <table id=tblA>
     <tr>
     <td style="background:red"></td>
     </tr>
    </table>
  </body>
</html>

解决方案 »

  1.   

    <table id=tblA>
         <tr>
         <td style="background:FF0000" onmouseover="this.style.backgroundColor='#0000FF'" onmouseout="this.style.backgroundColor='#FF0000'"></td>
         </tr>
      

  2.   

    <td style="background:FF0000" onmouseover="this.style.backgroundColor='#0000FF'" onmouseout="this.style.backgroundColor='#FF0000'"></td>
    还不具体??
      

  3.   

    document.getElementById('TableID').style.backgroundColor='#0000FF'
      

  4.   

    http://www.51windows.net/myjs/?u=/myjs/JsList.asp给你个网址看看 js 很多例子的