鼠标移动到一行时,背景变色,怎么弄

vwd 2005-09-19 05:44:05
response.write "document.write('<table><tr onmouseover=this.style.backgroundColor='#FFcccc'>');"
我是这样写的,总出不来效果
...全文
272 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
xyunchen0391 2006-04-01
  • 打赏
  • 举报
回复
对极了
fenglik 2005-09-21
  • 打赏
  • 举报
回复
response.write "<table><tr onmouseover=this.style.backgroundColor='#FFcccc' onmouseover=this.style.backgroundColor='#ffffff'><td>ffffffffff</td></tr></table>"

用了response.write 为什么要用document.write
asp中用response.write
javascript中用documente.write
vwd 2005-09-20
  • 打赏
  • 举报
回复
<tr onmouseover=this.style.backgroundColor='#FFcccc'>这样写是能出来效果
但是放在response.write "document.write('<table><tr onmouseover=this.style.backgroundColor='#FFcccc'>');"就不行了
kc_ren 2005-09-19
  • 打赏
  • 举报
回复
css
onmouseover=""
kevinworkroom 2005-09-19
  • 打赏
  • 举报
回复
<table>
<tr onMouseOver="this.style.backgroundColor='#999966'" onMouseOut="this.style.backgroundColor=''">
<td>onMouseOver:当鼠标移到上面显示的背景色
onMouseOut:当鼠标移出时显示的背景色</td>
</tr>
</table>
kicck 2005-09-19
  • 打赏
  • 举报
回复
onMouseOver="style.color='ff0000';" onMouseOut="style.color='333333';" style="focus:hand;"
yxtyxt3311 2005-09-19
  • 打赏
  • 举报
回复
TD不要加上颜色属性..
zy51 2005-09-19
  • 打赏
  • 举报
回复
document.write('<table><tr onmouseover=this.style.backgroundColor='#FFcccc'><td>变色</td></tr></table>');"

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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