当前位置: 移动技术网 > IT编程>开发语言>.net > asp.net 光棒效应实现代码

asp.net 光棒效应实现代码

2017年12月12日  | 移动技术网IT编程  | 我要评论
复制代码 代码如下:

protected void gridview1_rowdatabound(object sender, gridviewroweventargs e)
{
if (e.row.rowtype == datacontrolrowtype.datarow)
{
e.row.attributes.add("onmouseover", "javascript:currentcolor=this.style.backgroundcolor;this.style.backgroundcolor='#6699f';");
e.row.attributes.add("onmouseout", "javascript:this.style.backgroundcolor=currentcolor;");
}
}

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网