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 7900693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:01:57+00:00 2026-06-03T09:01:57+00:00

Hi guys im working on my first website and im trying to implement a

  • 0

Hi guys im working on my first website and im trying to implement a sliding menu using jquery.

This is what a got so far :

         <a href="javascript:void(0);"onmouseover="ShowBox();" onmouseout="HideBox();"">Show box<a>
         <script type="text/javascript">
         function ShowBox()
         {
           $("#SlideMenu").slideDown();   
         }
         function HideBox()
         {
           $("#SlideMenu").slideUp();
         }
         </script>

When i MouseOver the control my menu slides down but slides back up automatically.
What I would like is to let the user the time to select and option from the menu and if he doesn’t, i would like the menu to close as soon as the mouse leaves the control.

Any idea why this isn’t working ?
Thanks in advance.

  • 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-06-03T09:01:59+00:00Added an answer on June 3, 2026 at 9:01 am

    Do your stuff without the inline JS, and remember to close the <a> element and use a ready function

    <a id="test">Show box</a>
    
    <script type="text/javascript">
       $(document).ready(function() {
          $("#test").on({
              mouseenter: function() {
                 $("#SlideMenu").slideDown();
              },
              mouseleave: function() {
                 $("#SlideMenu").slideUp();
              },
              click: function(e) {
                 e.preventDefault();
              }
          });
       });
    </script>
    

    FIDDLE

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Guys check this website on FF and Chrome For some reason(s), jQuery isn't working
hey guys im working on a task to make my story's links like this
Hye Guys, I'm busy working on a time series and am trying to find
Hey guys this is a bit of a homework puzzle I'm working on and
Okay guys, I am working hashmap, using one of my classes as Key. My
Hey guys, so I've got my NSFetchedResultsController working fine under the 3.1 SDK, however
hey i guys i want help from you. i am working on website project,
Hey there guys, this is my first question on Stack Overflow. I figured this
I'm working my way through 'head first design patterns' and want to use this
Hey guys... I'm working on creating one of my first websites and currently have

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.