关闭

网页中的下拉菜单

888人阅读 评论(0) 收藏 举报

<script language=javascript>
<!--
var DIV_COUNT =8;
function ControlDiv(index)
{
 
 for(var i=1;i<= DIV_COUNT;i++)
 {
  var e = document.getElementById("dv"+ i);
  var ev = document.getElementById("dvShow"+ i);
  if( e == null || ev == null )
   continue;
  if( i == index)
  {
   e.style.borderLeftColor="#FF9600";
  }
  else
  {
   e.style.borderLeftColor="#DDDDDD";
   ev.style.display="none";
  }
 }

}
function showdv(index)
{  

 
 if(document.getElementById("dvShow"+index).style.display == "none")
 {
  document.getElementById("dvShow"+index).style.display = "";
 }
 else
 {  
  document.getElementById("dvShow"+index).style.display = "none";
 }
 
 ControlDiv(index);
  
 
  
}
function SpaceClass(div)
{
 document.getElementById("divset" + div).style.backgroundColor="#FFF7EC";
 
}

-->
</script>
<div class="ma_09">
   <div class="ma_11_1" id="dv1"><a href=javascript:showdv("1") class="menu_left">
   ︾主页设置</a></div>
   <div class="ma_12"  id="dvShow1" style="display:none" align=right>
     <div class="ma_13" id="divset1"><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font>模板选择</a></font></div>
     <div class="ma_13" id="divset2"><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_tagManage.aspx" onclick="SpaceClass(2)">
    <font size=2>标签管理</font></a></div>
     <div class="ma_13" id="divset3"><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_tagDisplay.aspx" onclick="SpaceClass(3)">
    <font size=2>标签显示</font></font></a></div>
     <div class="ma_13" id="divset4" ><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_pwdModify.aspx" onclick="SpaceClass(4)">
    <font size=2>修改密码</font></a></div>
     <div class="ma_13" id="divset5"><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_messageboard.aspx" onclick="SpaceClass(5)">
    <font size=2>查看留言</font></a></div>
     <div class="ma_13" id="divset6"><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_link.aspx" onclick="SpaceClass(6)">
    <font size=2>友情链接</font></a></div>
   </div>
<div class="ma_09">
   <div class="ma_11_1" id="dv1"><a href=javascript:showdv("2") class="menu_left">
   主页设置</a></div>
   <div class="ma_12"  id="dvShow2" style="display:none" align=right>
     <div class="ma_13" id="divset1"><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font size=2>模板选择</font></a></div>
     <div class="ma_13" id="divset2"><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_tagManage.aspx" onclick="SpaceClass(2)">
    <font size=2>标签管理</font></a></div>
     <div class="ma_13" id="divset3"><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_tagDisplay.aspx" onclick="SpaceClass(3)">
    <font size=2>标签显示</font></font></a></div>
     <div class="ma_13" id="divset4" ><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_pwdModify.aspx" onclick="SpaceClass(4)">
    <font size=2>修改密码</font></a></div>
     <div class="ma_13" id="divset5"><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_messageboard.aspx" onclick="SpaceClass(5)">
    <font size=2>查看留言</font></a></div>
     <div class="ma_13" id="divset6"><font size=2>
    <a href="/admin_templateSelect.aspx" onclick="SpaceClass(1)">
    <font face="宋体"><span style="text-decoration: none">◆ </span>
    </font></a></font>
    <a href="/admin_link.aspx" onclick="SpaceClass(6)">
    <font size=2>友情链接</font></a></div>
   </div>

   <!--
   <div class="ma_11_1" id="dv9"><a href='javascript:showdv("9")' class="menu_left">音乐管理</a></div>
   <div class="ma_12" id="dvShow9" style="display:none">
     <div class="ma_13" id="divset36"><a href="/admin_uploadmusic.aspx" onclick="SpaceClass(36)">上传音乐</a></div>
     <div class="ma_13" id="divset37"><a href="/admin_managemedia.aspx" onclick="SpaceClass(37)">音乐管理</a></div>
     <div class="ma_13" id="divset38"><a href="/admin_managevideo.aspx" onclick="SpaceClass(38)">视频管理</a></div>
     <div class="ma_13" id="divset39"><a href="/admin_manageob.aspx" onclick="SpaceClass(39)">伴奏管理</a></div>    
   </div>
   <!---->
</div>
 </td>
  </tr>
</table>

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:22283次
    • 积分:298
    • 等级:
    • 排名:千里之外
    • 原创:8篇
    • 转载:2篇
    • 译文:0篇
    • 评论:4条
    文章存档