惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
Vercel News
Vercel News
Recent Announcements
Recent Announcements
B
Blog RSS Feed
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
MongoDB | Blog
MongoDB | Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
D
Docker
Jina AI
Jina AI
IT之家
IT之家
人人都是产品经理
人人都是产品经理
L
LangChain Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
博客园 - 叶小钗
The GitHub Blog
The GitHub Blog
The Cloudflare Blog
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog

博客园 - 刘杨兵

调用windows api(C#) 获得数据库中的所有表名和列名(C#) Excel编程[C#] 动态创建Access数据库文件(C#) NET Remoting简单介绍 程序集与COM组件 VS.NET新建项目失败(附解决方案) - 刘杨兵 - 博客园 XSLT C# DES加减密 类似软件风格的网页下拉菜单 datalist DOM 精简知识教程 DOM对象笔记(js) 自定义对话框 js位置 js中的位置[一] ASP.NET的缓存技术 httpModule[2] httpModule
下拉菜单 - 刘杨兵 - 博客园
刘杨兵 · 2006-12-13 · via 博客园 - 刘杨兵

<html>
<head>
<title>下拉式导航菜单</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" text="#000000" background="../image/bj.jpg">
<script>
function hideAll() {
  for(i=0;i<odiv.length;i++) {
    odiv[i].style.display="none";
  }
}

function showObj(num) {
 
  if (odiv[num].style.display=="none") {
    hideAll();
    odiv[num].style.display="inline";
  }
  else {
    odiv[num].style.display="none";
  }

}
</script>
<table width="500" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCFFFF">
  <tr>
    <td><table width="200">
      <tr >
        <td> <a href="#" onclick="showObj(0)">+ 菜单一</a><br>
            <div id="odiv" style="display:none">
   <table width="500" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#993333" bgcolor="#9966CC">
  <tr>
    <td><div align="center"><span class="style1">sdf</span></div></td>
  </tr>
  <tr>
    <td bgcolor="#E7DBF2">sdf</td>
  </tr>
  <tr>
    <td bgcolor="#E7DBF2">sdf</td>
  </tr>
  <tr>
    <td bgcolor="#E7DBF2">sdf</td>
  </tr>
  <tr>
    <td bgcolor="#E7DBF2">sdf</td>
  </tr>
</table>
   </div></td>
      </tr>
      <tr >
        <td> <a href="#" onclick="showObj(1)">+ 菜单二</a><br>
            <div id="odiv" style="display:none"><table width="160"  border="0" align="center" cellpadding="0" cellspacing="0" class="blue">
      <tr>
        <td height="22" style="border-bottom:1px solid  #ebebeb ">&nbsp;&nbsp;&nbsp;<img src="images/dot1.gif" width="2" height="4"> 通讯器材</td>
      </tr>
   <!-- start loop ty tr (firstclass)------------------------------------------------------>
  
      <tr>
        <td height="22" style="border-bottom:1px solid  #ebebeb ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/dot1.gif" width="2" height="4"> <a href="shop_more.asp?id=6" target="_parent" class="bluelink">手机</a></td>
      </tr>
  
      <tr>
        <td height="22" style="border-bottom:1px solid  #ebebeb ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/dot1.gif" width="2" height="4"> <a href="shop_more.asp?id=10" target="_parent" class="bluelink">对讲机</a></td>
      </tr>
  
      <tr>
        <td height="22" style="border-bottom:1px solid  #ebebeb ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/dot1.gif" width="2" height="4"> <a href="shop_more.asp?id=11" target="_parent" class="bluelink">小灵通</a></td>
      </tr>
  
      <tr>
        <td height="22" style="border-bottom:1px solid  #ebebeb ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/dot1.gif" width="2" height="4"> <a href="shop_more.asp?id=14" target="_parent" class="bluelink">手机附件</a></td>
      </tr>
  
      <tr>
        <td height="22" style="border-bottom:1px solid  #ebebeb ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/dot1.gif" width="2" height="4"> <a href="shop_more.asp?id=16" target="_parent" class="bluelink">电话机</a></td>
      </tr>
  
   <!-- start loop ty tr (firstclass)------------------------------------------------------>

    </table></div></td>
      </tr>
      <tr >
        <td> <a href="#" onclick="showObj(2)">+ 菜单三</a><br>
            <div id="odiv" style="display:none">l111<br>
              l112<br>
              l113</div></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>