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.st来源gaodai$ma#com搞$$代**码网yle.backgroundColor=’#6699f’;”);
e.Row.Attributes.Add(“onmouseout”, “javascript:this.style.backgroundColor=currentcolor;”);
}
}
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add(“onmouseover”, “javascript:currentcolor=this.style.backgroundColor;this.st来源gaodai$ma#com搞$$代**码网yle.backgroundColor=’#6699f’;”);
e.Row.Attributes.Add(“onmouseout”, “javascript:this.style.backgroundColor=currentcolor;”);
}
}
以上就是asp.net 光棒效应实现代码的详细内容,更多请关注gaodaima搞代码网其它相关文章!