1、<table style="cursor:hand">
2、省略
3、window.event.srcElement.rowIndex
4、top.frames['frmRight'].tableName.style.backgroundColor='black';
5、如果用showModalDialog打开的窗口就狠简单,直接设置window.returnValue就可以返回了
2、省略
3、window.event.srcElement.rowIndex
4、top.frames['frmRight'].tableName.style.backgroundColor='black';
5、如果用showModalDialog打开的窗口就狠简单,直接设置window.returnValue就可以返回了
<tr>
<td onMouseOver="this.style.background='#CCFFCC';this.style.cursor='hand'" onMouseOut="this.style.background='';" onClick="alert(this.innerHTML)"> </td>
</tr>
<tr>
<td onMouseOver="this.style.background='#CCFFCC';this.style.cursor='hand'" onMouseOut="this.style.background='';" onClick="alert(this.innerHTML)"> </td>
</tr>
<tr>
<td onMouseOver="this.style.background='#CCFFCC';this.style.cursor='hand'" onMouseOut="this.style.background='';" onClick="alert(this.innerHTML)"> </td>
</tr>
<tr>
<td onMouseOver="this.style.background='#CCFFCC';this.style.cursor='hand'" onMouseOut="this.style.background='';" onClick="alert(this.innerHTML)"> </td>
</tr>
<tr>
<td onMouseOver="this.style.background='#CCFFCC';this.style.cursor='hand'" onMouseOut="this.style.background='';" onClick="alert(this.innerHTML)"> </td>
</tr>
<tr>
<td onMouseOver="this.style.background='#CCFFCC';this.style.cursor='hand'" onMouseOut="this.style.background='';" onClick="alert(this.innerHTML)"> </td>
</tr>
<tr>
<td onMouseOver="this.style.background='#CCFFCC';this.style.cursor='hand'" onMouseOut="this.style.background='';" onClick="alert(this.innerHTML)"> </td>
</tr>
<tr>
<td onMouseOver="this.style.background='#CCFFCC';this.style.cursor='hand'" onMouseOut="this.style.background='';" onClick="alert(this.innerHTML)"> </td>
</tr>
<tr>
<td onMouseOver="this.style.background='#CCFFCC';this.style.cursor='hand'" onMouseOut="this.style.background='';" onClick="alert(this.innerHTML)"> </td>
</tr>
<tr>
<td onMouseOver="this.style.background='#CCFFCC';this.style.cursor='hand'" onMouseOut="this.style.background='';" onClick="alert(this.innerHTML)"> </td>
</tr>
</table>
.font1{color:FF0000;}
.font2{color:FFFF00;}
</style>
<table onmouseover="this.cursor:hand;" onmouseout="this.cursor:;">
<tr onmouseover="this.bgcolor:#cccccc;this.style:font1;" onmouseout="this.bgcolor:#ffffff;this.style:font2;"><td>看看变化情况</td></tr>
</table>