您的位置:首页 > 编程语言 > ASP

asp.net下怎么实现Gridview鼠标滑过光棒变色效果

2014-01-11 20:04 555 查看
代码如下:
//光棒效果 
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"); 
} 
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐