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

The Archive Base Latest Questions

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

I have a list item that when hovered upon slides down another inner list.

  • 0

I have a list item that when hovered upon slides down another inner list. Problem I’m having is if you quickly hover over it accidentally it slides down and some times even ends up in a weird loop where it bounces between closed and open. My solution is to set a slight delay before showing it.

 $('#overlayNav li').hover(
     function() {
         var that = this;
         setTimeout(function(){test(that)},1000);
         function test(param) {
             if(param.id) {
                 $(param).find('ul').slideDown({easing: "easeOutBounce", duration: 900});
             }
         }, 

Problem is all this code does it delay the slide. The hover is still detected even if you hover for a fraction of a second as before…the only difference is that there’s now a delay before it shows…what I need to say is after the timeout if the mouse is still over that element then show it. How do i do this?

  • 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-20T05:04:32+00:00Added an answer on May 20, 2026 at 5:04 am

    All you have to do is keep track of the timer (via the element’s data), and clear it on hover out:

    $('#overlayNav li').hover(
         function() {
             var that = this;
    
             /*** Here! ***/
             $(this).data('timer', setTimeout(function(){test(that)},1000));
    
             function test(param) {
                 if(param.id) {
                     $(param).find('ul').slideDown({
                         easing: "easeOutBounce", duration: 900
                     });
                 }
             }
         },
         function () {
    
             /*** And here! ***/
             var timer = $(this).data('timer');
             if (timer) $(this).data('timer', clearTimeout(timer));
    
         }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple UL list, when you hover over the More list item
I have some code that inserts a list item into a list... I then
I have a list of data that is a schedule. Each item has a
I have a List<T> that I want to search not for a given item
I have the following list item that I want to append an 'Edit Settings'
I have a hunch that I need to access an item in a list
I have a list of item that must be cetered as a text, but
Hello I have a item list that shows on my asp.net page like this:
I'm seeing on this site: http://www.modernizr.com/docs/ how they have a decimal list item that
I have a list of Item objects that have a date attribute. I also

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.