http://www.csdn.net/Develop/read_article.asp?id=20770
解决方案 »
- ajax.method为什么只执行一行代码
- 急!! vs.net2005专业版 页面设计窗口部分为什么没有垂直和水平滚动条??而vs.net2003就有
- 急问有关cab显示在网页的问题?
- GridView控件如何行选择?
- 怎么解决这个郁闷的问题啊?在线等。
- 怎样让一个表格显示在屏幕的固定位置?
- 用过DevExpress WEB打印的请帮忙,为什莫在WEB打印预览时总是显示“目前访问网站的用户过多”?
- 行走江湖,大家都曾使过什么兵器,现在最趁手的兵器是什么?
- FCKeditor_2.0rc3怎么用阿?
- ASP.NET连接ORACLE8.0.5.0.0数据库出现的问题,100分求助
- 有分来送:怎样获取HTML代码
- 如何在进行程序部署时,加入一个I agreement 窗口(让用户接受法律协议的窗口)!!!*****急
{
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
e.Item.Attributes["onmouseover"]="this.name=this.style.backgroundColor;this.style.backgroundColor='#FFF79C';";
e.Item.Attributes["onmouseout"]="this.style.backgroundColor=this.name;";
}
}
if (e.Item.ItemIndex>=0)
{
int i;
i=e.Item.ItemIndex;
e.Item.Attributes.Add("onmouseover", "mouseover("+i+")");
e.Item.Attributes.Add("onmouseout", "mouseout("+i+")");
}
javascript:
<script language="JavaScript">
function mouseover(i)
{
DataGrid1.rows[i+1].bgColor = "#00C0C0";
}
function mouseout(i)
{
DataGrid1.rows[i+1].bgColor = "white";
}
</script>