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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:15:54+00:00 2026-05-16T03:15:54+00:00

I am working with jquery. I have a main image. When I place the

  • 0

I am working with jquery. I have a main image.

When I place the mouse over the main image, I would like the following to happen.

Another image gets placed over the image, this image much smaller and be placed towards the bottom of the main image.

Also when the small image appears, if I click on it, an event is fired. Eg. alert box is triggered. Clicking on the small image should trigger the alert box, clicking the main image should not.

Could someone help me out with this please with 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-05-16T03:15:54+00:00Added an answer on May 16, 2026 at 3:15 am

    Here’s the simplest example I could come up with. In future it might be better if you showed the code you already have. It barely requires any jquery.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    <script>
        $(function() {
            $('#image-2').click(function() { alert('meow'); });
        });
    </script>
    <style>
        #image-2 { position: absolute; left: 50px; bottom: 5px; display:none; }
        #container:hover #image-2 { display: block; }
    </style>
    </head>
    <body>
    <div id="container" style="position: relative">
    <img id="image-1" src="http://www.freefoto.com/images/01/07/01_07_1---Pair-of-Dogs_web.jpg?&k=Pair+of+Dogs" />
    <img id="image-2" src="http://www.coolbuddy.com/social/imgs/cat64x64.jpg" />
    </div>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just starting working with jquery and have encountered the following problem <div
I'm working with jquery. And i have text input in a form, i would
I have a jQuery statement that's working fine. How would I re-write it in
I have the following in my main html: jQuery(document).ready(function(){ jQuery('body').flvplay(songlist, {something});}); I wanted to
I have jQuery draggable set up and working ok on a table row. Currently
I have jquery validation code which is working fine in ff but the same
I have been working with jQuery mobile 1.0.1. I have a page which drills
I have this JQuery code working however I need to know whether how to
I have used JQuery within my asp.net page. JQuery is working fine. I could
I'm working with Jquery in Drupal. I have sets of four blocks that all

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.