<tr style="display:none">通过点击实现打开与关闭
解决方案 »
- ASP.net出现这样的问题,该怎么解决,急,在线等~
- 招聘网站的数据库设计
- 页面传值问题
- 含有treeview 页面滚动条问题
- 小问题:Databind的时候用Dataset好还是command好?
- 数据库中两个表相关的问题
- 救急----Visual Studio .NET 无法确定在 Web 服务器计算机上运行的是否为 ASP.NET 1.1 版。
- 远程数据库连接
- 急!dropdownlist 数据榜定问题(在线等待)
- 怎么将登录的帐号和密码传给特定的网页,CSDN上曾提过
- 100分求助 难题!将动网结构的论坛,改成类似CSDN的框架式,左边为树
- 初学者请问:VS.NET可视化数据绑定问题
<table id=aa onclick="a()">
<tr style="cursor:hand;display:">
<td>aaaa</td>
</tr>
<tr style="cursor:hand;display:">
<td>bbbbbb</td>
</tr>
<tr style="cursor:hand;display:">
<td>aaaa</td>
</tr>
<tr style="cursor:hand;display:">
<td>bbbbbb</td>
</tr>
</table>
<script>
function a()
{
e=event.srcElement
if(e.tagName=="TABLE") return
while(e.tagName!="TR")
e=e.parentElement
if(e.rowIndex==document.getElementById("aa").rows.length-1) return
document.getElementById("aa").rows[e.rowIndex+1].style.display=(document.getElementById("aa").rows[e.rowIndex+1].style.display=='none')?'':'none'
}
</script>
</body>
datagrid是服务器控件,并绑定dataset后可以这样做吗??
我也要 谢谢^_^
[email protected]