服务器之家:专注于服务器技术及软件下载分享
分类导航

PHP教程|ASP.NET教程|JAVA教程|ASP教程|

asp.net 光棒效应实现代码

2019-06-28 13:12服务器之家 ASP.NET教程

asp.net 光棒效应实现代码

代码如下:

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;"); 

}

延伸 · 阅读

精彩推荐