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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:18:52+00:00 2026-06-12T03:18:52+00:00

I have a problem with a div when I hover div (one) the div

  • 0

I have a problem with a div when I hover div (one) the div (two) pop up but when I hover the pop up div he disappears, I need to div(two) slide or pop up before div (one) not after. And div (one) and div(two) belog to the same class.
Here is my CSS, HTML and javascript.

HTML

 <div id = "one" class="slideUP1"></div>
 <div id = "two" class="slideUP1"></div>

CSS

 .slideUP1

{
      background-color:Gray;
}

#one


{
    z-index:50;
    width:320px;
    height:124px;
    position:relative;
    overflow:hidden;
    float:left;
    margin-right:5px;
    margin-top:0px;
}

#two 
{ 
  display: none; 
  position:absolute;
  height:300px;
  width:900px; 
  z-index:55; 
  margin-bottom:0px;
}

javascript

$(document).ready(function () {

           $(".slideUP1").hover(function () {
               $(this).next("#two").animate({ opacity: "show", top: "144" }, "fast");
           });
       });

       $(document).ready(function () {

           $(".slideUP1").mouseleave(function () {
               $(this).next("#two").animate({ opacity: "hide", top: "154" }, "fast");
           });
       });
  • 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-12T03:18:54+00:00Added an answer on June 12, 2026 at 3:18 am

    The problem is that when you hover on the second div, you leave the first div hence making it close. Put both of them in a container and use the hover events on it instead.

    <div id = "container">
        <div id = "one" class="slideUP1"></div>
        <div id = "two" class="slideUP1"></div>
    </div>
    

    And the javascript:

    $(document).ready(function () {
    
           $("#container").hover(
                function () {
                   $(this).find("#two").animate({ opacity: "show", top: "144" }, "fast");
               },
                function () {
                   $(this).find("#two").animate({ opacity: "hide", top: "154" }, "fast");
               });
       });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two div s, one inside the other. When I hover over the
So i need to make a div a link, and have the background colour
I have a situation that i have a hidden div with two input elements
Hi i have 2 function for one menu, slide bottom under menu and dynamic
I have two images, one of which is very small and is superimposed over
I have built two control containers on a page, one is using jquery-ui tabs
Two problems, both caused by IE7 www.myvintagesecret.com 1) I have a Div called .postheader
I'm having some difficulty wrapping my head around this one. I have two divs,
I have two divs one inside of the other, now i want to put
The code below is what I have but unfortunately it's not doing anything. Previously

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.