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

AspNet技术asp.net 光棒效应实现代码,转载需保留来源!

郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。