点击菜单,弹出或消失子菜单
来源:互联网 发布:淘宝上开店需要交钱吗 编辑:程序博客网 时间:2024/05/14 14:39
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table >
<tr>
<td id="td1" onclick="doClick(this)">1</td>
<td id="td2" onclick="doClick(this)">2</td>
</tr>
</table>
<table id="t1" style="display:none">
<tr>
<td>
1111111111111
</td>
</tr>
</table>
<table id="t2" style="display:none">
<tr>
<td>
22222222222222
</td>
</tr>
</table>
<hr />
<hr />
<table>
<tr>
<td id="td3" onclick="dothis(this)">3</td>
</tr>
</table>
<table id="t3" style="display:none">
<td>
<tr>
3333333333333
</tr>
<tr>
4444444444444
</tr>
<tr>
5555555555555
</tr>
<tr>
6666666666666
</tr>
</td>
</table>
</body>
</html>
<script type="text/javascript">
<!--
function doClick(o){
var j;
var id;
var e;
for(var i=1;i<=2;i++){
id ="td"+i;
j = document.getElementById(id);
e = document.getElementById("t"+i);
if(id != o.id){;
e.style.display = "none";
}else{
e.style.display = "block";
}
}
}
function dothis(o){
var i=document.getElementById("t3");
if(i.style.display == "none"){
i.style.display = "block";
}else{
i.style.display = "none";
}
}
//-->
</script>
- 点击菜单,弹出或消失子菜单
- |点击按钮弹出菜单|
- 点击按钮弹出菜单
- 托盘图标菜单弹出后,点击其它地方,菜单不消失的问题
- jQuery点击弹出下拉菜单
- Flex点击弹出菜单示例
- Flex点击弹出菜单示例
- jQuery点击弹出下拉菜单
- MFC点击按钮弹出菜单
- Flex4 点击弹出菜单示例
- 菜单点击弹出动画 ViewpropertyAnimator
- mfc 弹出菜单不消失的解决
- 如何让菜单点击后不消失
- js点击子菜单折叠,再点击子菜单展开
- ListView点击出现子菜单
- MFC 托盘右键菜单点击非菜单区域后消失
- bootstrap鼠标点击弹出菜单,鼠标经过弹出菜单
- 关于点击菜单项或按钮无法弹出对话框的问题(使用了RichEdit控件)
- MIPS架构的交叉编译工具问题
- 验证数字的正则表达式集
- Windows Mobile获取系统图片
- 2410平台上dm9000a网卡驱动分析(一)
- moblin小小试用!
- 点击菜单,弹出或消失子菜单
- 定时器:Timer与Quartz应用实例
- JSP连接MySQL配置与使用
- 2410平台上dm9000a网卡驱动分析(二)
- How to view the schema class or attribute definition you first have to install the Active Directory Schema snap-in
- 2410平台上dm9000a网卡驱动分析(三)
- 手机游戏该如何设计盈利模式?
- Three Ways to Inject Your Code into Another Process
- 2410平台上dm9000a网卡驱动分析(四)