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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:00:03+00:00 2026-06-03T04:00:03+00:00

**** The truth is all these solutions work, just not with the project so

  • 0

**** The truth is all these solutions work, just not with the project so I will re-pose the question, slightly differently ****

Essentially I have an image, which when someone moves their mouse cursor over it, it displays a div (which contains an image – aka play button). When they move they’re cursor outside of the image, the play button disappears.

It works but if you move the curse over the play button it flickrs like mad, hence I must have my events mixed up somehow..

Thanks in advance for any help…

HTML

<div id="cont">
    <div id="art"  style= "position: absolute; left: 20px; top: 40px;">
        <a href="#"><img src="http://www.newmusicproducer.com/img/ic_play.png"></a>
    </div>
    <img src="https://i1.sndcdn.com/avatars-000008744854-5sr588-large.jpg?d408275" alt="smile" id="imgSmile"></img>

jQuery

$(document).ready(function() {
    $('#art').hide();             
    $('#imgSmile').mouseenter(function() {
        $('#art').show();
    });

    $('#imgSmile').mouseleave(function() {   
        $('#art').hide();
    });
});​

Here’s a fiddle

  • 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-03T04:00:05+00:00Added an answer on June 3, 2026 at 4:00 am

    This same effect could be achieved using just CSS:

    <div>
        <a href="#"><img src="http://www.newmusicproducer.com/img/ic_play.png"></a>
    </div>
    
    div
    {
     background-image:url('https://i1.sndcdn.com/avatars-000008744854-5sr588-large.jpg?d408275');
        width:100px;
        height:100px;
        position:relative;
    }
    div a
    {
     position:absolute;
        top:20px;
        left:30px;
        display:none;
    }
    div:hover a
    {
        display:block;
    }
    

    ​– SEE DEMO —


    EDIT: In case you need to use this multiple times on the same page with different link URLs, I’ve made a version which requires minimal HTML using a bit of jQuery to apply the rest:

    <div class="play kirkbridge" data-playUrl="/myPlayUrl"></div>
    

    http://jsfiddle.net/tW68d/16/

    This might be a bit overkill though, it depends on your usage.

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

Sidebar

Related Questions

For example, I have 3 counters (which I essentially want to represent as truth
I'm not very fluent in C++, to tell the truth. I have some binary
I have the following helper in a rails 3.1 project - I'm just wondering
To tell the truth, I am quite confused on all these terms (JDK/JRE/Java SDK).
It's a well known truth, that you don't can trust user inputs. These inputs
I have a method that checks all of the combinations of 5 different conditions
I just read this article: The Truth About Garbage Collection In section A.3.3 Invisible
I have an Ubuntu 10.04 server, running PHP 5.3.2 and I have these lines
I know similar questions have been asked and answered before but the truth is
Many standard modules are all using straight up perl -- problem is these guys

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.