CSDN博客

img ycl111

树形菜单基础

发表于2004/10/9 15:56:00  1645人阅读

分类: asp

<html>
<head>
<SCRIPT language="JavaScript">
function display1(Q_subtree,Q_img){
 
  if (Q_subtree.style.display=="none"){
       Q_subtree.style.display="";    
     Q_img.src="tree_collapse.gif";
    }
  else
      {
       Q_subtree.style.display="none";     
       Q_img.src="tree_expand.gif";
  }
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<table width="174" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><IMG src="tree_collapse.gif" border=no name=img onclick="javascript:display1(document.all.subtree,document.all.img);" >123123</td>
  </tr>
  <tr>
    <td id="subtree">123123</td>
  </tr>
</table>
</body>
</html>

阅读全文
0 0

相关文章推荐

img
取 消
img