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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:46:38+00:00 2026-05-24T05:46:38+00:00

Currently I have a JQuery script in place http://jsfiddle.net/gaby/zzj7E/5/ which handles the requirement that

  • 0

Currently I have a JQuery script in place http://jsfiddle.net/gaby/zzj7E/5/ which handles the requirement that when i hover on a particular div, a hidden div slides down. This happens on every div i hover on.

However you will notice that if one hovers his mouse quickly over the set of divs, it leaves several divs sliding down at once. Actually i dont want this.

What i want is that unless the previous div hasnt fully slided up the other div wont slide down even if hovered on. Or if possible show the div slide down effect only if the user has the mouse hover it for above 1.5 secs.

Is this possible to implemented in jQuery? Can someone help?

EDIT:
Had to use .live() to add the effect to dynamically added elements. COuld nt use hover with live() as its proving cumbersome. Below is the code am using

 $(".altbgcolor").live('mouseenter', function() {
              //hover code
              $(this)
                    .addClass('altbgcolor-active')
                    .find(".sharedp")
                    .slideDown('slow');
            }).live('mouseleave', function() {
              //stopped hovering code
              $(this)
                    .removeClass('altbgcolor-active')
                    .find(".sharedp")
                    .slideUp('slow');
            });

How to integrate the effect in this mouseenter and mouseleave events?

  • 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-24T05:46:39+00:00Added an answer on May 24, 2026 at 5:46 am

    Something like this would work:

    http://jsfiddle.net/zzj7E/27/

    $(".altbgcolor").hover(function() {
        var el= $(this);
        el.addClass('altbgcolor-active');
        el.data('hover', setTimeout(function()
            {
                if (el.hasClass('altbgcolor-active'))
                {
                    el.find(".sharedp").slideDown('normal');
                }
            }, 1500)
        );
    
    },function () {
        var el= $(this);
        clearTimeout(el.data('hover'));
        el.removeClass('altbgcolor-active')
            .find(".sharedp")
            .slideUp('normal');
    });
    

    EDIT: if using mouseover and mouseout events instead of hover:

    http://jsfiddle.net/zzj7E/30/

    $(".altbgcolor").live({
        mouseenter: function() {
            var el= $(this);
            el.addClass('altbgcolor-active');
            el.data('hover', setTimeout(function()
                {
                    if (el.hasClass('altbgcolor-active'))
                    {
                        el.find(".sharedp").slideDown('normal');
                    }
                }, 1500)
            );      
        },
        mouseleave: function () {
            var el= $(this);
            clearTimeout(el.data('hover'));
            el.removeClass('altbgcolor-active')
                .find(".sharedp")
                .slideUp('normal');
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a single jQuery script page that I include in my ScriptManager
I have a jQuery Mobile webpage which currently has a width=device-width but my form
I have a page that is currently utilizing a jQuery plug-in for truncating text
I have a jQuery tab script that gets content from a PHP file defined
I have a jQuery script which returns the current date into a text box.
I have this jquery script that refreshes a div tag on my page: $(function()
Is there a better way to do this jquery code? Currently I have to
I have a fancy web page with lots on JQuery included. Currently i am
I am currently trying to manipulate a unordered list with jQuery, essentially I have
I have a jquery datepicker which is renders the current date by default as

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.