折叠菜单代码
1个回答
展开全部
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<HTML><HEAD>
<link href="<%=request.getContextPath()%>/css/dtree.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=request.getContextPath()%>/js/dtree.js"></script>
</HEAD>
<BODY bgColor=#DDF0FB leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<div class="dtree">
<script type="text/javascript">
d =new dTree('d',"<%=request.getContextPath()%>");
<s:iterator value="powerpage.list2" id="map">
<s:if test="#map.URL==null">
d.add("${map.id}","${map.parent_id}","${map.name}");
</s:if>
<s:else>
d.add("${map.id}","${map.parent_id}","${map.name }","","<%=request.getContextPath()%>/${map.url}","","right");
</s:else>
</s:iterator>
document.write(d);
</script>
</div>
</BODY>
</HTML>
<%@ taglib prefix="s" uri="/struts-tags"%>
<HTML><HEAD>
<link href="<%=request.getContextPath()%>/css/dtree.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=request.getContextPath()%>/js/dtree.js"></script>
</HEAD>
<BODY bgColor=#DDF0FB leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<div class="dtree">
<script type="text/javascript">
d =new dTree('d',"<%=request.getContextPath()%>");
<s:iterator value="powerpage.list2" id="map">
<s:if test="#map.URL==null">
d.add("${map.id}","${map.parent_id}","${map.name}");
</s:if>
<s:else>
d.add("${map.id}","${map.parent_id}","${map.name }","","<%=request.getContextPath()%>/${map.url}","","right");
</s:else>
</s:iterator>
document.write(d);
</script>
</div>
</BODY>
</HTML>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询