几个简单的问题,请大家帮忙

dancer 2004-10-08 08:17:07
1.如何使得鼠标移到table上时变成手型?

2.如何使点击table上某一行的tr的bgcolor变为蓝色,字变为白色,其他行不变

3.如何得到点击的是哪一行?(rows返回的是什么?),如何取得数据?

4.一个页面里有两个htm,如果在左边的htm的按钮控制右边htm的table?(例如删除一行)

5.打开一个新窗口,选择行后如何将此行的数据返回给原先的窗口?(用户名,用户id)

谢谢大家,分不够我加,很急,多谢了
...全文
113 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
Amely 2004-10-08
  • 打赏
  • 举报
回复
<style type=text/css>
.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>
caojinrong 2004-10-08
  • 打赏
  • 举报
回复
来晚了
  • 打赏
  • 举报
回复
5.window.opener.form1.text1.value
  • 打赏
  • 举报
回复
第四个简单window.frame[2].tabel1.row[i].rowRemove
  • 打赏
  • 举报
回复
this.style.cursor='hand'变为手型,晕这是那天我没写的东东
guoweidong 2004-10-08
  • 打赏
  • 举报
回复
先给你几个.其它的暂时没时间.我还有点事件要做完.

<table width="100%" border="1">
<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>
是是非非 2004-10-08
  • 打赏
  • 举报
回复
1、<table style="cursor:hand">
2、省略
3、window.event.srcElement.rowIndex
4、top.frames['frmRight'].tableName.style.backgroundColor='black';
5、如果用showModalDialog打开的窗口就狠简单,直接设置window.returnValue就可以返回了

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧