📄 treemenu.jsp
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ taglib uri="/tags/web-loushang" prefix="loushang"%>
<%@ taglib uri="/tags/web-html" prefix="html" %>
<%@ page import="org.loushang.web.taglib.util.skin.SkinUtils"%>
<%@ taglib uri="/tags/web-i18n" prefix="web"%>
<link rel="stylesheet" type="text/css" href="<loushang:ui css='leftmenu.css'/>">
<web:js src="XmlTreeMenu.js"/>
<html>
<head>
<title>树型菜单</title>
</head>
<body topmargin="50px" style="padding:0px;margin:1px;" scroll="auto" unselectable="on" onresize="">
<table width="100%">
<tr>
<td><label class="title">树型菜单组件</label></td>
<%
String file = request.getServletPath().substring(1);
String app = request.getContextPath();
%>
<td><label class="title">url:<%=file%></label></td>
<td align="right" valign="bottom" nowrap> [<a
href="<%=app%>/src.jsp?target=<%=file %>" target="source">源代码</a>] </td>
</tr>
</table><hr>
<!--
<button name="source" onclick="code()">显示源代码</button>
<html:textarea name="test" cols="80" rows="5" value=""/>
-->
<center>
<script language="javascript">
function code(){
document.all("test").value="";
document.all("test").value=document.body.innerHTML;
}
var menu=new XmlTreeMenu("menu","<%=app%>","<%=SkinUtils.getImagePath(request)%>/");
menu.show("treemenu.xml");
</script>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -