Hopes

Start Here..

 

折叠菜单(怎么实现点击一个打开,另一个收起)

折叠菜单(怎么实现点击一个打开,另一个收起)

分类: javascript2008-11-01 09:17 336人阅读 评论(0) 收藏 举报
<meta http-equiv=content-type content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
margin:0px;
padding:0px;
}
body,td {
font-size:12px;
}
-->
</style>
<script lanuage="Javascript">
var tt='start';
var ii='start';
function turnit(ss,bb) {
  if (ss.style.display=="none") {
    if(tt!='start') tt.style.display="none";
    if(ii!='start') ii.src="dian.gif";
    ss.style.display="";
    tt=ss;
    ii=bb;
  }
  else {
    ss.style.display="none"; 
  }
}
</script>
<body style="overflow-x:hidden;">
<table height="100%" cellSpacing="0" cellpadding="0" width="170" border="0">
 <tbody>
 <tr>
 <td width="165" align="center" valign="top" background="images/s520adminpic/ric_tableftbg.gif">
<table cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
    <tr>
     <td height="5"></td>
    </tr>
   </tbody>
  </table>
  <!--三Start-->
  <table id="tag1" style="cursor: pointer;" onClick="turnit(Content1,tag1);" cellspacing="0" cellpadding="0" width="150" border="0">
   <tbody>
    <tr valign="top" align="left">
     <td width="14"><img height="29" src="/images/s520adminpic/04/member_m1.gif" width="21"></td>
     <td align="center" valign="middle" class="admin_leftitlebg4">学员管理中心</td>
     <td align="right" width="11"><img height="29" src="/images/s520adminpic/04/member_m3.gif" width="21"></td>
    </tr>
   </tbody>
  </table>
  
        <table class="member_kuang04" id="Content1" style="display: none" cellspacing="0" cellpadding="0" width="136" bgcolor="#ffffff" border="0">
          <tbody>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="manage_user.htm" 
            target="mainframe">学员信息管理</a><br />
                <img height="3" src="/images/s520adminpic/04/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="wrongtxt.htm" 
            target="mainframe">学员错题本查询</a><br />
                <img height="3" src="/images/s520adminpic/04/member_line2.gif" width="136"></td>
            </tr>
<!--            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="invigilator.htm" 
            target="mainframe">父母监考官查询</a><br />
                <img height="3" src="/images/s520adminpic/04/member_line2.gif" width="136"></td>
            </tr>-->
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="integralseacher.htm" 
            target="mainframe">积分查询</a><br />
                <img height="3" src="/images/s520adminpic/04/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="championship.htm" 
            target="mainframe">周冠军查询</a><br /></td>
            </tr>
          </tbody>
        </table>
  
  <table cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
    <tr>
     <td height="2"></td>
    </tr>
   </tbody>
  </table>
  <!--三End-->
  <!--四Start-->
  <table id="tag4" style="cursor: pointer;" onClick="turnit(Content4,tag4);" cellspacing="0" cellpadding="0" width="150" border="0">
   <tbody>
    <tr valign="top" align="left">
     <td width="14"><img height="29" src="/images/s520adminpic/04/member_m1.gif" width="21"></td>
     <td align="center" valign="middle" class="admin_leftitlebg4">学习卡管理中心</td>
     <td align="right" width="11"><img height="29" src="/images/s520adminpic/04/member_m3.gif" width="21"></td>
    </tr>
   </tbody>
  </table>
  
        <table class="member_kuang04" id="Content4" style="display: none" cellspacing="0" cellpadding="0" width="136" bgcolor="#ffffff" border="0">
          <tbody>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="distributeCard.htm" 
            target="mainframe">发卡管理</a><br />
                <img height="3" src="/images/s520adminpic/04/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="receivableQuery.htm" 
            target="mainframe">代理商发卡统计</a><br /></td>
            </tr>
          </tbody>
        </table>
  
  <table cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
    <tr>
     <td height="2"></td>
    </tr>
   </tbody>
  </table>
  <!--四End-->
  
  <!--五Start-->
  <table id="tag5" style="cursor: pointer;" onClick="turnit(Content5,tag5);" cellspacing="0" cellpadding="0" width="150" border="0">
   <tbody>
    <tr valign="top" align="left">
     <td width="14"><img height="29" src="/images/s520adminpic/04/member_m1.gif" width="21"></td>
     <td align="center" valign="middle" class="admin_leftitlebg4">教材版本管理中心</td>
     <td align="right" width="11"><img height="29" src="/images/s520adminpic/04/member_m3.gif" width="21"></td>
    </tr>
   </tbody>
  </table>
  
        <table class="member_kuang04" id="Content5" style="display: none" cellspacing="0" cellpadding="0" width="136" bgcolor="#ffffff" border="0">
          <tbody>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="textbookbb.htm" 
            target="mainframe">教材首选版本管理</a><br /></td>
            </tr>
          </tbody>
        </table>
  
  <table cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
    <tr>
     <td height="12"></td>
    </tr>
   </tbody>
  </table>
  <!--五End-->
  
     <!--七Start-->
  <table id="tag7" style="cursor: pointer;" onClick="turnit(Content7,tag7);" cellspacing="0" cellpadding="0" width="150" border="0">
   <tbody>
    <tr valign="top" align="left">
     <td width="14"><img height="29" src="/images/s520adminpic/02/member_m1.gif" width="21"></td>
     <td align="center" valign="middle" class="admin_leftitlebg2">帐务管理中心</td>
     <td align="right" width="11"><img height="29" src="/images/s520adminpic/02/member_m3.gif" width="21"></td>
    </tr>
   </tbody>
  </table>
  
        <table class="member_kuang02" id="Content7" style="display: none" cellspacing="0" cellpadding="0" width="136" bgcolor="#ffffff" border="0">
          <tbody>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="accsubjectList.htm" 
            target="mainframe">记账科目设置</a><br />
                <img height="3" src="/images/s520adminpic/02/member_line2.gif" width="136"></td>
            </tr>
<tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="paytypeList.htm" 
            target="mainframe">支付类型设置</a><br />
                <img height="3" src="/images/s520adminpic/02/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="accdetailList.htm" 
            target="mainframe">代理商明细账</a><br />
                <img height="3" src="/images/s520adminpic/02/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="accStaticQuery.htm" 
            target="mainframe">合作商总账</a><br />
                <img height="3" src="/images/s520adminpic/02/member_line2.gif" width="136"></td>
            </tr>
         
      <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="paymentList.htm" 
            target="mainframe">订单明细账</a><br /></td>
            </tr>  
          </tbody>
        </table>
  
  <table cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
    <tr>
     <td height="12"></td>
    </tr>
   </tbody>
  </table>
     <!--七End-->
  <!--九Start-->
  <table id="tag9" style="cursor: pointer;" onClick="turnit(Content9,tag9);" cellspacing="0" cellpadding="0" width="150" border="0">
   <tbody>
    <tr valign="top" align="left">
     <td width="14"><img height="29" src="/images/s520adminpic/member_m1.gif" width="21"></td>
     <td valign="middle" class="admin_leftitlebg">教师平台分中心管理</td>
     <td align="right" width="11"><img height="29" src="/images/s520adminpic/member_m3.gif" width="21"></td>
    </tr>
   </tbody>
  </table>
  
        <table class="member_kuang1" id="Content9" style="display: none" cellspacing="0" cellpadding="0" width="136" bgcolor="#ffffff" border="0">
          <tbody>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="teachcenter.htm" 
            target="mainframe">分中心信息管理</a><br /></td>
            </tr>
          </tbody>
        </table>
  
  <table cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
    <tr>
     <td height="2"></td>
    </tr>
   </tbody>
  </table>
  <!--九End-->
  <!--十Start-->
        <table id="tag10" style="cursor: hand" onClick="turnit(Content10,tag10);" cellspacing="0" cellpadding="0" width="150" border="0">
          <tbody>
            <tr valign="top" align="left"> 
              <td width="14"><img height="29" src="/images/s520adminpic/member_m1.gif" width="21"></td>
              <td valign="middle" class="admin_leftitlebg">教师平台学校管理</td>
              <td align="right" width="11"><img height="29" src="/images/s520adminpic/member_m3.gif" width="21"></td>
            </tr>
          </tbody>
        </table>
        <table class="member_kuang1" id="Content10" style="display: none" cellspacing="0" cellpadding="0" width="136" bgColor="#ffffff" border="0">
          <tbody>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="schoolist.htm" 
            target="mainframe">学校列表</a><br />
              <img height="3" src="/images/s520adminpic/member_line2.gif" width="136" /></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="schoolinfo.htm" 
            target="mainframe">学校信息统计</a><br />
              <img height="3" src="/images/s520adminpic/member_line2.gif" width="136" /></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="manageteacher.htm" 
            target="mainframe">教师管理</a><br />
              <img height="3" src="/images/s520adminpic/member_line2.gif" width="136" /></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="activation_code.htm" 
            target="mainframe">激活码管理</a></td>
            </tr>
          </tbody>
        </table>
  
  <table cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
    <tr>
     <td height="12"></td>
    </tr>
   </tbody>
  </table>
   <!--十End-->
   
  <!--八Start-->
  <table id="tag8" style="cursor: pointer;" onClick="turnit(Content8,tag8);" cellspacing="0" cellpadding="0" width="150" border="0">
   <tbody>
    <tr valign="top" align="left">
     <td width="14"><img height="29" src="/images/s520adminpic/03/member_m1.gif" width="21"></td>
     <td align="center" valign="middle" class="admin_leftitlebg3">代理商管理中心</td>
     <td align="right" width="11"><img height="29" src="/images/s520adminpic/03/member_m3.gif" width="21"></td>
    </tr>
   </tbody>
  </table>
  
        <table class="member_kuang03" id="Content8" style="display: none" cellspacing="0" cellpadding="0" width="136" bgcolor="#ffffff" border="0">
          <tbody>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="manageservice.htm" 
            target="mainframe">查看代理商列表</a><br />
                <img height="3" src="/images/s520adminpic/03/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="add_agents_inf.htm" 
            target="mainframe">添加代理商资料</a><br /></td>
            </tr>
          </tbody>
        </table>
  
  <table cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
    <tr>
     <td height="2"></td>
    </tr>
   </tbody>
  </table>
  <!--八End-->
  <!--十二Start-->
  <table id="tag12" style="cursor: pointer;" onClick="turnit(Content12,tag12);" cellspacing="0" cellpadding="0" width="150" border="0">
   <tbody>
    <tr valign="top" align="left">
     <td width="14"><img height="29" src="/images/s520adminpic/03/member_m1.gif" width="21"></td>
     <td align="center" valign="middle" class="admin_leftitlebg3">交流平台信息管理</td>
     <td align="right" width="11"><img height="29" src="/images/s520adminpic/03/member_m3.gif" width="21"></td>
    </tr>
   </tbody>
  </table>
  
        <table class="member_kuang03" id="Content12" style="display: none" cellspacing="0" cellpadding="0" width="136" bgcolor="#ffffff" border="0">
          <tbody>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="type_news.htm" 
            target="mainframe">栏目管理</a><br />
              <img height="3" src="/images/s520adminpic/03/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="add_info.htm" 
            target="mainframe">添加内容</a><br />
              <img height="3" src="/images/s520adminpic/03/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="ziyuan.htm" 
            target="mainframe">专栏资源</a><br />
              <img height="3" src="/images/s520adminpic/03/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="noticelist.htm" 
            target="mainframe">信息列表</a><br /></td>
            </tr>
          </tbody>
        </table>
  
  <table cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
    <tr>
     <td height="2"></td>
    </tr>
   </tbody>
  </table>
  <!--十二End-->
   
  <!--十一Start-->
  <table id="tag11" style="cursor: pointer;" onClick="turnit(Content11,tag11);" cellspacing="0" cellpadding="0" width="150" border="0">
   <tbody>
    <tr valign="top" align="left">
     <td width="14"><img height="29" src="/images/s520adminpic/03/member_m1.gif" width="21"></td>
     <td align="center" valign="middle" class="admin_leftitlebg3">系统管理中心</td>
     <td align="right" width="11"><img height="29" src="/images/s520adminpic/03/member_m3.gif" width="21"></td>
    </tr>
   </tbody>
  </table>
  
        <table class="member_kuang03" id="Content11" style="display: none" cellspacing="0" cellpadding="0" width="136" bgcolor="#ffffff" border="0">
          <tbody>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="sys_type.htm" 
            target="mainframe">系统参数设置</a><br />
              <img height="3" src="/images/s520adminpic/03/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="sys_area.htm" 
            target="mainframe">区域设置</a><br />
                <img height="3" src="/images/s520adminpic/03/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="myet.htm" 
            target="mainframe">Myet帐号与授权管理</a><br />
                <img height="3" src="/images/s520adminpic/03/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="manageservice.htm" 
            target="mainframe">模块管理</a><br />
                <img height="3" src="/images/s520adminpic/03/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="manageservice.htm" 
            target="mainframe">用户管理</a><br />
                <img height="3" src="/images/s520adminpic/03/member_line2.gif" width="136"></td>
            </tr>
            <tr> 
              <td height="22"><font color="#ff9900">·</font><a class="menu1" href="manageservice.htm" 
            target="mainframe">角色管理</a><br /></td>
            </tr>
          </tbody>
        </table>
  
  <table cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
    <tr>
     <td height="2"></td>
    </tr>
   </tbody>
  </table>
  <!--十一End-->
 </td>
 <td width="5" bgcolor="#44BCF0">&nbsp;</td>
 </tr>
 </tbody>
</table>
</body>
<script lanuage="Javascript">
onclick=turnit(Content1,tag1);
</script>

posted on 2012-08-12 21:42 ** 阅读(1081) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
博客园   IT新闻   Chat2DB   C++博客   博问  
 

导航

统计

公告

你好!

常用链接

留言簿(2)

随笔档案

文章分类

文章档案

新闻档案

相册

收藏夹

C#学习

友情链接

搜索

最新评论

阅读排行榜

评论排行榜