实现方法很简单:
  首先在head区定义一个样式表,如下:<style>
 .td1 { background-color: green; color: #ffffff }
 .td2 { background-color: #ffffff; color: green }
</style>具体颜色可自定。  然后在需要效果的单元格<td>加入:class="td1" onMouseover="className='td2'" onMouseout="className='td1'"
 
  
另一种实现方法:用JS 
第一步:将下面的代码复制到head区内 <script language="JavaScript1.2"> function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlight
color&&sour
ce.id!="ignore")
source.style.backgroundColor=highlightcolor
}function changeback(originalcolor){
if (event.fromElement.contains(event.toElemen
t)||source.
contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}
</script>第二步:在<table>标签中加入onMouseover="changeto(’lightgreen’)" onMouseout="changeback(’white’)"changto("鼠标放上表格时的颜色") changeback("鼠标离开后的颜色")