<tr onmouseover="this.style.backgroundColor='red'" onmouseout="this.style.backgroundColor=''">
解决方案 »
- 关于ExtJs的TabPanel切换选项卡时,页面数据没有再次刷新
- 全选,排除部分
- prototype定义的对象中的函数用this访问不了类的属性,该怎么做办
- 求一个iframe自动适当当前窗口高度的问题,注意,绝非是iframe里的内容的高度
- 高手帮忙看看。这个广告效果的大FLASH是居左的。怎么才能让它居中啊?
- 打印问题
- 求一个停顿、循环的代码。
- 怎么实现多选框同时选中多个..
- 腾讯文章评论下的点赞大拇指效果怎么做的
- JS怎么在百度地图中截取图片
- 模态窗口内部的事件如何的触发呢?着急啊,
- 大家来看看吧,当层数目较少时可以正常切换菜单图片,多的时候就不正常,超过30个层时连显示也成问题,为什么?急!!!!!
<tr onmouseover="over(this)" onmouseout="out(this)">
<td>a</td>
<td>a</td>
<td>a</td>
</tr>
<tr onmouseover="over(this)" onmouseout="out(this)">
<td>b</td>
<td>b</td>
<td>b</td>
</tr>
</table>
<script language="JavaScript">
<!--
function over(o){
o.style.backgroundColor='red'
if(event.srcElement.tagName=="TD")event.srcElement.style.backgroundColor='blue'
}
function out(o){
o.style.backgroundColor=''
if(event.srcElement.tagName=="TD")event.srcElement.style.backgroundColor=''
}
//-->
</script>
<table width=200>
<tr id=di1>
<td id=di2>a</td>
<td id=di3>a</td>
<td>a</td>
<td onmouseover="over(this)" onmouseout="out(this)">b</td>
<td>b</td>
<td>b</td>
</tr>
</table>
<script language="JavaScript">
<!--
function over(o){
o1.style.backgroundColor='red'
o2.style.backgroundColor='red'
o3.style.backgroundColor='red'
if(event.srcElement.tagName=="TD")event.srcElement.style.backgroundColor='blue'
}
function out(o){
o1.style.backgroundColor=''
o2.style.backgroundColor=''
o3.style.backgroundColor=''
if(event.srcElement.tagName=="TD")event.srcElement.style.backgroundColor=''
}
//-->
</script> 还有其它方法吗?