jquery多级左菜单

时间:2012-03-15 05:44:11

标签: jquery

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>

谢谢

1 个答案:

答案 0 :(得分:0)

1。Multilevel Dropdown Menu Issues with Jquery

2。http://jsfiddle.net/MkR7W/3/

希望它会给你一个解决这个问题的想法。