asp.net下让Gridview鼠标滑过光棒变色效果
更新时间:2010年07月22日 18:43:42 作者:
Gridview光棒效果 鼠标滑过
复制代码 代码如下:
//光棒效果
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroundColor='#FFFDD7'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=currentcolor");
}
}
相关文章
ASP.NET中iframe框架点击左边页面链接 右边显示链接页面内容
这篇文章主要介绍了ASP.NET中iframe框架点击左边页面链接,右边显示链接页面内容的实现代码,感兴趣的小伙伴们可以参考一下2016-07-07
ASP.NET中为TextBox中添加calendar.js示例代码
为TextBox中添加calendar.js对于一些新手朋友确实有点难度,下面为大家介绍下ASP.NET中具体的实现方法2013-11-11


最新评论