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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:17:41+00:00 2026-06-10T01:17:41+00:00

I need to setup a hover button that can show a popup image when

  • 0

I need to setup a hover button that can show a popup image when hovered and remove the popup image when hover out. My problem is that when I hover the button, the popup image pops and covers the button so it fires the hoverout event and remove the popup image even though the cursor is still on the button. How can I resolve this?

 $('.test').hover(function(){           
            imageId=$(this).next().attr('id');
            $('#div-' + imageId).show(150);
        },function (){
            $('#div-' + imageId).hide(150);
        })
  • 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-10T01:17:42+00:00Added an answer on June 10, 2026 at 1:17 am

    I’d suppose the popup image doesn’t cover entirely the thumbnail (or this would be trivial : simply fire the mouselave event on the popup image). Then this is a frequent problem with bubbles and menu. You have similar problems if the popup contains other mousehover sensitive areas.

    You can register mouseleave events both on the thumb and the popup, and check for both if the mouse is still on target when you receive the event.

    You can use this function :

    // event is an event (usually the mouseleave)
    // o is a jquery object
    bubbling.eventIsOver = function(event, o) {
        if ((!o) || o==null) return false;
        var pos = o.offset();
        var ex = event.pageX;
        var ey = event.pageY;
        if (
            ex>=pos.left
            && ex<=pos.left+o.width()
            && ey>=pos.top
            && ey<=pos.top+o.height()
        ) {
            return true;
        }
        return false;
    };
    

    If it returns true, the mouse is still hover the popup image or the thumbnail so the popup shouldn’t be closed.

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

Sidebar

Related Questions

I need to setup an ASP.Net MVC view with a Date Picker that will
I need to setup a system where customers can choose to Request a Quote
I need to setup a Kohana dev environment that allows me to make full
I need to setup a build development environment that includes the following Sonatype Nexus
I want oAuth verification process for a mobile application.For that i need to setup
I need to setup an Asp.Net application w/ forms authentication so that it meets
I need to setup the following urls: /article (article#index) /articles/1234 ( article#show with id
I have a complicated background image with a lot of small regions that need
I need to setup an application that watches for files being created in a
I need to setup a simple IVR system for a friend's company that will

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.