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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:40:44+00:00 2026-06-16T02:40:44+00:00

Well, i am trying to create a box should pop out when a link

  • 0

Well, i am trying to create a box should pop out when a link is hovered,

well i got the basic covered, but for some reason i couldn’t fully accomplish what i am trying to do.

as you can see on here, http://jsfiddle.net/EpV87/1/ (sorry its a poor recreation of the problem i am having)

What i am trying to do is to make the box (TEST) visible if HOVER HERE is hovered and box should visible if mouse is hovered inside.

when the mouse entered TEST, it works correctly, however, when it is hovered to other OTHER and a empty space, it doesn’t work correctly as the TEST box is still visible.

How do i make the TEST box hide if mouse hovered on OTHER & empty space
Thanks and i am newbie to jQuery.

  • 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-16T02:40:45+00:00Added an answer on June 16, 2026 at 2:40 am

    Inspired by this old answer:

    var $link = $(".link");
    var $box = $("#box");
    
    $link.mouseenter(function() {
      clearTimeout($box.data('timeoutId'));
      $box.show(200);
    }).mouseleave(function() {
      var timeoutId = setTimeout(function() {
        $box.hide(200);
      }, 650);
      $box.data('timeoutId', timeoutId);
    });
    
    $box.mouseenter(function() {
      clearTimeout($box.data('timeoutId'));
    }).mouseleave(function() {
      var timeoutId = setTimeout(function() {
        $box.hide(200);
      }, 650);
      $box.data('timeoutId', timeoutId);
    });
    .link {
      border: 1px solid red;
      padding: 10px;
    }
    
    #box {
      display: none;
      border: 1px solid red;
      margin-top: 10px;
      padding: 10px;
    }
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <a class="link">Hover me</a>
    <div id="box">Surprise!</div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create chained constructors but well, im no good at it
I'm trying to create an image changing box in a website. Made some attempts
Alright well I am trying to create a dictionary from a text file so
I am trying to create my own little MVC system, its working very well,
Well im trying to write my own custom control extender but i can't get
Well I am trying to learn the java MVC pattern, but I can't understand
I'm trying to dynamically create variables if possible. I have a list box containing
I am trying to create a custom dialog box that displays an image in
I am trying to create sidebar. Well, the design is supposed to be 3
I'm trying to create an XML column in Code First. I'm well aware Entity

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.