2012-03-15 56 views
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> 

感谢

+2

请张贴您的html – Prescott 2012-03-15 05:46:59

+0

您的html代码在哪里? – 2012-03-15 05:47:42

+0

在这方面的任何帮助... – user1135693 2012-03-15 06:04:33

回答