http://dotnet.aspx.cc/ShowList.aspx?id=1这个页面上,列表使用的是什么控件?datagrid吗?我现在想知道的是鼠标经过时的横条是怎么出现的?就是说每个TR中的代码<tr onmouseover="this.bgColor='#C1D2EE'" bgcolor="oldlace" onmouseout="this.bgColor=document.getElementById('DataGrid1').getAttribute('oldValue')">是怎么加入的,谢谢!
解决方案 »
- linkButton弹出层
- js怎么判断图层的显示和隐藏?
- asp:Menu控件换行的问题
- js怎么操作FileUpload控件
- 关于DataGrid的属性的使用
- 如何在自己的网站上做天气预报?
- 怎样才能触发dgrdgrid的SelectedIndexChanged事件?
- csdn 上面的錯誤跟我遇到的一樣誰能說說為什麼?
- 如何获取其他Web程序的Web服务?
- 这个微软的示例不能在未装.net 的环境中运行,不知大家有什么办法?
- 请高手指点:如何设置IIS才能运行从别人那里拷过来的程序?
- 100分求开源的,符合Web Standards的,主要用div+css而非table+font布局的.net论坛程序
{
if( e.Item.ItemIndex != -1 )
{
e.Item.Attributes.Add("onmouseover", "this.bgColor='#C1D2EE'");
if (e.Item.ItemIndex % 2 == 0 )
{
e.Item.Attributes.Add("bgcolor", "#FFFFFF");
e.Item.Attributes.Add("onmouseout", "this.bgColor=document.getElementById('" + DataGrid1.ClientID + "').getAttribute('singleValue')");
}
else
{
e.Item.Attributes.Add("bgcolor", "oldlace");
e.Item.Attributes.Add("onmouseout", "this.bgColor=document.getElementById('" + DataGrid1.ClientID + "').getAttribute('oldValue')");
}
}
else
{
DataGrid1.Attributes.Add("oldValue", "oldlace");
DataGrid1.Attributes.Add("singleValue", "#FFFFFF");
}
}