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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:59:18+00:00 2026-05-31T08:59:18+00:00

Target: Object user will hover over to bring up secondary DOM Tooltip: Fixed DOM

  • 0

Target: Object user will hover over to bring up secondary DOM
Tooltip: Fixed DOM object positioned about 10-15px below target

I have made a jquery “tooltip” plugin. This plugin allows users to hover over a DOM object, and will show the “tooltip”. I want users to be able to move their mouse from the target to the tooltip without it disappearing the second their mouse leaves the target.

I have tried this:

 var hoverTimeout;

                data.target.hover(function(){
                    $this.tooltip('show');
                }, function(){

                    hoverTimeout = setTimeout(function(){
                        $this.tooltip('hide');
                        console.log('hey');
                    }, 1000);

                });

                data.tooltip.hover(function(){
                    data.tooltip('show');
                    clearTimeout(hoverTimeout);
                }, function(){
                    data.tooltip('hide');
                });

However, this seems to stop the Tooltip from hiding. The reason I’d like to do this, is so forms can be used, text can be copied, etc., in the tooltip.

I’m hoping something like a setTimeout and clearTimeout will work as I don’t want to use hoverintent plugin.

Thank you so much in advance!

  • 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-31T08:59:20+00:00Added an answer on May 31, 2026 at 8:59 am

    You should use the timer both ways:

    var hoverTimeout;
    
    data.target.hover(function()
    {
        hoverTimeout && clearTimeout(hoverTimeout);
        $(this).tooltip('show');
    },
    function()
    {
        var $this = $(this);
        hoverTimeout = setTimeout(function(){
            $this.tooltip('hide');
        }, 1000);
    
    });
    
    data.tooltip.hover(function()
    {
        hoverTimeout && clearTimeout(hoverTimeout);
    },
    function()
    {
        var $this = $(this);
        hoverTimeout = setTimeout(function(){
            $this.tooltip('hide');
        }, 1000);
    });
    

    You should probably combine the two, since you’re anyhow doing the exact same thing on both of them:

    var hoverTimeout;
    
    data.target.add( data.tooltip ).hover(function()
    {
        hoverTimeout && clearTimeout(hoverTimeout);
        $(this).tooltip('show');
    },
    function()
    {
        var $this = $(this);
        hoverTimeout = setTimeout(function(){
            $this.tooltip('hide');
        }, 1000);
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The target is: I need a wcf method which will create user in the
What I am looking for is a way to programmatically verify a target object
Can I retrieve a Method via reflection, somehow combine it with a target object,
I get this error: System.Reflection.TargetException: Object does not match target type. when trying to
Is that possible to make a UIToolbarButton pass an object to its target by
Can Automapper map values from a NameValueCollection onto an object, where target.Foo receives the
I'm attempting to create a CodeActivity object that will register a DLL on a
The error message below i get when Im trying to create a new user
The app I am creating has lots of pictures that the user will be
I have a work-space object containing a list of target objects with their properties.

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.