1.鼠标经过变色,ONMOUSEOVER变色
<table width="100%" style="border-top:0">
<tr style="background-color:#c1e5ff;"
οnmοuseοver="this.runtimeStyle.backgroundColor = '#ddd';"
οnmοuseοut="this.runtimeStyle.backgroundColor = this.style.backgroundColor;" οnclick="this.runtimeStyle.backgroundColor = '#0f0';">
<td>>>><a style='cursor:hand;' οnclick='showSlide();' >设置项目条件</a></td>
</tr>
</table>
2.onclick事件隐藏一个table
function showSlide()
{
if (document.getElementById('tbxm').style.display=="")
document.getElementById('tbxm').style.display="none";
else
document.getElementById('tbxm').style.display="";
}
<table width="100%" border="1" id="tbxm" style="display:none;">