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

asp.net下让Gridview鼠标滑过光棒变色效果

2010-11-21 21:29 716 查看
//光棒效果
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");
}
}

详细出处参考:http://www.jb51.net/article/24335.htm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: