jQuery(document).ready(function () {
jQuery('#content').hide();
jQuery('#last').mouseover(function () {});
jQuery('#content').on('mouseout', function () {});
});
这是我的代码,我有两个div ... 我需要输出多级左菜单.......检查此链接http://javascript-array.com/scripts/multi_level_drop_down_menu/?j这样我需要显示我不太了解jquery你能帮忙吗
这是我的jsp代码
<div class="nav-menu nav-menu-style-<%= bulletStyle %>" >
<c:choose>
<c:when test='<%= (headerType.equals("root-layout") && (rootLayout != null)) %>'>
<%
String layoutURL = PortalUtil.getLayoutURL(rootLayout, themeDisplay);
String target = PortalUtil.getLayoutTarget(rootLayout);
String layoutName = rootLayout.getName(themeDisplay.getLocale());
%>
<h2>
<a href="<%= layoutURL %>" <%= target %>><%= layoutName %></a>
</h2>
</c:when>
<c:when test='<%= headerType.equals("portlet-title") %>'>
<h2><%= themeDisplay.getPortletDisplay().getTitle() %></h2>
</c:when>
<c:when test='<%= headerType.equals("breadcrumb") %>'>
<p id="last"> <liferay-ui:breadcrumb /></p>
</c:when>
</c:choose>
<div id="content">
<%
if (!hidden) {
StringBuilder sb = new StringBuilder();
_buildNavigation(rootLayout, layout, selBranch, themeDisplay, 1, includedLayouts, nestedChildren, sb);
String content = sb.toString();
/*if (!nestedChildren) {
content = StringUtil.replace(content, "</a><ul class", "</a></li></ul><ul class");
content = StringUtil.replace(content, "</ul></li>", "</ul><ul class=\"layouts\">");
}*/
%>
<%= content %>
<%
}
%>
</div>
</div>
谢谢
答案 0 :(得分:0)