一个简单的收缩菜单
2004-11-28 15:24
585 查看
<script>
function showhide(which){
if( which.style.display=="none"){
which.style.display=""
}else{
which.style.display="none"
}
}
</script>
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#666666" onclick="showhide(content1)" style="color:white;cursor:hand">open1</td>
</tr>
<tr id="content1" style="display:none">
<td>content1</td>
</tr>
<tr>
<td bgcolor="#999999" onclick="showhide(content2)" style="color:white;cursor:hand">open2</td>
</tr>
<tr id="content2" style="display:none">
<td>content2</td>
</tr>
</table>
function showhide(which){
if( which.style.display=="none"){
which.style.display=""
}else{
which.style.display="none"
}
}
</script>
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#666666" onclick="showhide(content1)" style="color:white;cursor:hand">open1</td>
</tr>
<tr id="content1" style="display:none">
<td>content1</td>
</tr>
<tr>
<td bgcolor="#999999" onclick="showhide(content2)" style="color:white;cursor:hand">open2</td>
</tr>
<tr id="content2" style="display:none">
<td>content2</td>
</tr>
</table>
open1 |
content1 |
open2 |
content2 |
相关文章推荐
- VC与Delphi之间动态链接库互相调用
- javascript表单之间的数据传递!
- PHP 的 MySQL 操作类,跟手册上的函数一样用,但是更方便了。多说无益,看了就知道了。
- SELECT TOP N 问题
- 参加特色教育网站评比
- 教育软件评审
- delphi中的时间操作技术(1)
- delphi中的时间操作技术(2)
- VB五子棋问题,请高手赐教
- IP地址的隐藏(delphi实现 )
- 解析IP地址为主机域名
- 将某一主机域名解析为IP地址
- 獲取SQL SERVER用戶表信息游標
- 有关TrueDBGrid的问题向各位大虾请教
- 用VB和MTS开发多层数据库应用系统
- 纯编码实现数据库的建立或压缩
- 从数据库中动态选取下拉列表的方法
- 如何在VB例程中接收自定义消息
- [转贴]Phrack 最新公开的Win32用户态rootkit技术
- 关于LoadRunner压测过程中出现的error26601的解释