0
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可以請你在這方面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>
感謝
請張貼您的html – Prescott 2012-03-15 05:46:59
您的html代碼在哪裏? – 2012-03-15 05:47:42
在這方面的任何幫助... – user1135693 2012-03-15 06:04:33