JS+CSS实现可以凹陷显示选中的单元格
<script><br />
function overbutton(){<br />
if(src=event.srcElement)<br />
if(src.className=="normal"){<br />
src.className='hover';<br />
}<br />
}<br />
function outbutton(){<br />
if(src=event.srcElement)<br />
if(src.className=="hover"){<br />
src.className='normal';<br />
}<br />
}<br />
function clickbutton(){<br />
if(src=event.srcElement)<br />
if(src.className=="hover"){<br />
var cells=document.all.button.rows[0].cells;<br />
for (i=0;i<cells.length ;i++ )<br />
{cells[i].className="normal";<br />
}<br />
src.className='click';<br />
}<br />
}
<p>document.onmouseover=overbutton<br />
document.onmouseout=outbutton<br />
document.onclick=clickbutton</script>