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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:35:25+00:00 2026-06-12T05:35:25+00:00

I have a background div and a foreground div which fades in as the

  • 0

I have a background div and a foreground div which fades in as the background is moused over, and fades out when the background is mousd out.

But when the foreground fades in, it steals focus from the background and the tooltip ends up “flashing”:

http://jsfiddle.net/ts97t/

How do I keep the tooltip visible and stop the flashing?

Thanks

  • 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-12T05:35:27+00:00Added an answer on June 12, 2026 at 5:35 am

    Mouse over me.
    This needs to stay visible, and not flash, until I mouse out of the green square!

    JQUERY

    $("#background").hover(function(){
     $("#tooltip").fadeIn();
    },function(){
        $("#tooltip").fadeOut();
       });​
    

    and if you want #tooltip overlaps the “Mouse over me” text.

    #tooltip {
        display: none;
        width: 130px;
        height: 130px;
        background: red;
        top:0;
    }
    

    DEMO

    second way

       var i=0;
    $("#background").hover(function(){
         $("#tooltip").fadeIn();
        },function(){
            if (i==1) {
                $("#tooltip").fadeOut();
    i=0;
            } 
        });
    
    $('#tooltip').hover('',function(){
      i=1;
    
    });
    

    HTML

    <div id="background">Mouse over me.</div>
    <div id="tooltip">This needs to stay visible, and not flash, until I mouse out of the green square!</div>
    

    DEMO 2

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

Sidebar

Related Questions

I want to make a DIV background (which doesn't have a background color) flash
Hey so I have a div containing 3 links which have a background url
I have DIV element which only has a few lines in and a background
I have a large background div, on which i have bound a function via
I have a background div with set dimensions, which includes a table element. I'm
When the user hovers over a div I have the background image change using
I have an anchor tag with some simple CSS: div { background-color: gray; /*
I have set a background on the data-role=page element like so <div data-role=page style=background:
Why does every row have a red background when I'm using nth-child(odd) ? <div
I have a div that has a background colour and it also contains an

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.