Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7403389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:04:11+00:00 2026-05-29T05:04:11+00:00

I have a vertical sliding menu but there’s a few things I’m missing and

  • 0

I have a vertical sliding menu but there’s a few things I’m missing and not sure how to do.

  • I want all the sub menu items to be closed when the page load/refreshes
  • When the mouse hovers over a link with sub menus it slides down and goes back up when it hovers over another link with sub menus. I need it to slide back up every time the mouse stops hovering over the link(s)

Here’s the code and thanks

<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.js"></script>

<script type='text/javascript'>
var $ = jQuery.noConflict(); 
$(document).ready(function(){  
$("#secondpane li.menu-item").mouseover(function(){
$(this).next("li.menu_body").slideDown(500).siblings("li.menu_body").slideUp("slow");
});  
});
</script>



<div class="menu-container">
<ul id="secondpane">
<li><a href="#">home</a></li>
<li class="menu-item"><a href="#">about us</a></li>
    <li class="menu_body"><ul>
        <li class="menu-item"><a href="#">testimonials</a></li>
        <li class="menu-item"><a href="#">full width page</a></li>
    </ul></li>
<li class="menu-item"><a href="#">blog</a></li>
    <li class="menu_body"><ul>
        <li class="menu-item"><a href="#">web design</a></li>
        <li class="menu-item"><a href="#">illustrations</a></li>
        <li class="menu-item"><a href="#">art inspiration</a></li>
    </ul></li>
<li class="menu-item"><a href="#">portfolio</a></li>
<li class="menu-item"><a href="#">contact</a></li>
</ul>
</div>  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:04:13+00:00Added an answer on May 29, 2026 at 5:04 am

    This works!

    <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.js"></script>
    
    <style>
    li {list-style: none;}
    </style>
    
    <script type='text/javascript'>
    var $ = jQuery.noConflict();
    $(document).ready(function(){
                                 $("#secondpane li.menu-item ul").hide();
    
                                 $("#secondpane li.menu-item").hover(function(){
                                      $(this).children("ul").slideDown(500);
                                 },function(){
                                      $(this).children("ul").slideUp(500);
                                 });
    
    });
    </script>
    
    
    
    <div class="menu-container">
    <ul id="secondpane">
    <li><a href="#">home</a></li>
    <li class="menu-item"><a href="#">about us</a>
        <ul>
            <li><a href="#">testimonials</a></li>
            <li ><a href="#">full width page</a></li>
        </ul></li>
    <li class="menu-item"><a href="#">blog</a>
        <ul>
            <li><a href="#">web design</a></li>
            <li><a href="#">illustrations</a></li>
            <li><a href="#">art inspiration</a></li>
        </ul></li>
    <li class="menu-item"><a href="#">portfolio</a></li>
    <li class="menu-item"><a href="#">contact</a></li>
    </ul>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a vertical menu with sub categories. When a main category is clicked
I have a vertical menu in my system which is basically made of HTML
I have a UIScrollView that shows vertical data, but where the horizontal component is
So I have a fairly simple vertical CSS menu based off of UL. <ul
i have created a jquery onhover vertical sliding menubar now i need to implement
Want to have vertical scroll bar if content is more than expected in popwindow...
I have a vertical navigation that I want to use similar to a TabBarController
I have a vertical menu (html list) with an arrow image (as a div).
I have a vertical nav menu that is made up of nested lists, however
I have a vertical menu using lists (li) and I've got it changing background

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.