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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:53:50+00:00 2026-06-18T05:53:50+00:00

In this JSFiddle, I’m trying to do a simple mouseover an image1, it changes

  • 0

In this JSFiddle, I’m trying to do a simple mouseover an image1, it changes to image2 with an icon image appearing also that contains a link to click on. I have trouble making this little icon image(+link) disappear on mouse off and instead it just keeps adding more of the same icon image(+link) with each mouseover(I know it’s because I have .after() in jquery), but is there something to just do a simply mouseover/mouseleave?

Is there also a way to position this icon image using px anywhere you want around the main image1/2 on the page to appear?

http://jsfiddle.net/KpYnD/2/

$(document).ready(function(){
$('.normalClassName').addClass('.normalClassName:hover').mouseover(function(){
$(this).after('<a href="http://www.yahoo.com" /></a><img src="http://www.quarktet.com/Icon-small.jpg">')

});

 });
  • 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-18T05:53:51+00:00Added an answer on June 18, 2026 at 5:53 am

    Is this what you’re after?

    EDIT: Updated this jsfiddle link

    http://jsfiddle.net/KpYnD/3/

    HTML

    <div class="normalClassName">
        <a href="http://www.yahoo.com"><img src="http://www.quarktet.com/Icon-small.jpg" /></a>
    </div>
    

    Css:

    .normalClassName {
        width: 150px;
        height: 150px;
        background: transparent url('http://files.softicons.com/download/web-icons/vector-stylish-weather-icons-by-bartosz-kaszubowski/png/256x256/sun.rays.medium.png') top left no-repeat;
        position:relative;
    }
    
    .normalClassName a {
        display:none;
        position:absolute;
        left:50%;
        top:0;
    }
    
    .normalClassName:hover {
         background: transparent url('http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/256/Status-security-medium-icon.png') top left no-repeat;
    }
    
    .normalClassName:hover a {
        display:block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this jsfiddle that hides tables rows. I am trying to get it
Please see this jsFiddle: https://jsfiddle.net/Wmq6f/ I have a textarea that has a background image,
In this jsfiddle I'm trying to create a link that covers the entirety of
In this jsfiddle , I am trying to create a DIV that expands and
As you can see in this jsfiddle , I'm trying to make a toggle
I have been trying to get this jsfiddle to work. So far without luck.
I this: http://jsfiddle.net/ZP76c/ I'm trying to control the scope at which jQuery selects elements
I've created this JSFiddle to illustrate my question . It seems that 10 -
i have something like this: jsfiddle <div data-role=content> <ul data-role=listview data-split-icon=gear data-split-theme=d> <li><a href=index.html>
If you open this JSFiddle , you should see in Firebug/Chrome Dev Tools that

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.