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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:07:59+00:00 2026-06-13T20:07:59+00:00

I have an image map in one div and I want to replace the

  • 0

I have an image map in one div and I want to replace the image in another div when the hotspots are clicked.

Here’s the map…

<div id="vtright">
<img src="vt_map.jpg" usemap="#vtmap" border="0">
<map name="vtmap">
<area shape="circle" coords="313,105,15" href="map01.jpg">
<area shape="circle" coords="320,140,15" href="map02.jpg">
<area shape="circle" coords="265,308,15" href="map03.jpg">
<area shape="circle" coords="323,301,15" href="map04.jpg">
<area shape="circle" coords="250,377,15" href="map05.jpg">
<area shape="circle" coords="310,350,15" href="map06.jpg">
<area shape="circle" coords="284,451,15" href="map07.jpg">
<area shape="circle" coords="208,485,15" href="map08.jpg">
</map>
</div>
</div>

…and here’s the image I’m trying to replace…

<div id="vtleft">
<div id="vtimg">
<img id = "vtimage" src="map01.jpg" width="255" height="180" class="vtimage">
</div>
</div>

Be nice if the images crossfaded or just fade in / fade out as well if that’s not stretching the friendship!

I’ve tried a bunch of noob level functions that I won’t embarrass myself by posting, probably only confuse things. Any help is appreciated!

  • 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-13T20:08:00+00:00Added an answer on June 13, 2026 at 8:08 pm

    Try this :

    var rePlace;
    $(document).ready(function(){
      $('map[name="vtmap"] area').each(function() {
        $(this).on("click", function(e) {
          e.preventDefault();
          rePlace = '<img id="vtimage" src="' + this.href + '" width="255" height="180" class="vtimage" />';
          $("#vtimg").html(rePlace).hide().fadeIn();
        }); // on
      }); // each​
    }); // ready
    

    Note in order to use .on() jQuery v1.7+ is required

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

Sidebar

Related Questions

I have an image map in my page: <div id=books> <img src=images/books.png width=330 height=298
I have an image and a map embedded as such: <img src=planets.gif width=145 height=126
I have an image map with two different area shape attributes. I want to
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
I want to have a map (which is image-mapped) show green in areas where
I'm working with the following scenario: I have an image map with hotspots. When
I have a div containing 2 images, one is sort of a map the
I have a custom cursor for an image map with a lot of hotspots.
I have an image of a map, and I want to add the address
I have image map that can I move, but this map will be so

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.