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

  • Home
  • SEARCH
  • 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 7013173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:21:08+00:00 2026-05-27T22:21:08+00:00

I searched for this but didn’t find an solution that totally fixed my problem.

  • 0

I searched for this but didn’t find an solution that totally fixed my problem.

I got 2 divs that are over each other. Where div #2 isn’t shown (display:none).

Now what I want is that if I hover over div #1, div #2 slides down (open) at his current position.

Then div #2 should stay open when people are hovering over div #2, when they leave the hover status of div #2 for more then 5 seconds div #2 slides up again.

I made a fiddle to illustrate my div positions.

  • 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-27T22:21:09+00:00Added an answer on May 27, 2026 at 10:21 pm

    Using jQuery to keep the code simpler. One way to do what you want is to pair a global variable with a setTimeout function. The timeout checks if the mouse is still out of the div after five seconds, and if so, slides it up and out of sight.

    $('.button').click(function() {
        $('.showme').slideDown();
    });
    
    $('.showme').mouseout(function() {
        window.isoverdiv = false;
        setTimeout(function() {
            if (!window.isoverdiv) {
                $('.showme').slideUp();
            }
        }, 5000);
    });
    
    $('.showme').mouseover(function() {
        window.isoverdiv = true;
    });
    

    http://jsfiddle.net/mblase75/TxnDd/2/

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

Sidebar

Related Questions

i searched for the topic but didn't find exactly that kind of problem. I
I've searched everywhere for this, but I can't seem to find a solution. Perhaps
I have searched google, but I didn't find anything. I searched this site and
I searched the forums but didn't find any answers to this question. I am
I searched, but didn't find good answer to this: It should be pretty straightforward,
Hello I searched for an answer to this question but didn't find any here.
I searched everywhere but didn't find the solution. I have image 1. How can
I searched for a few days now but didn't find a solution. So here
I've searched for the answer to this question but I can't seem to find
I searched google but couldn't find an answer to this rather simple question. I

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.