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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:04:54+00:00 2026-05-20T20:04:54+00:00

I have lots of identical images which share a common map: <map name=mymap> <area

  • 0

I have lots of identical images which share a common map:

<map name="mymap">
  <area shape="polygon" coords="0,0,64,0,32,32" href="ref1">
  <area shape="polygon" coords="64,0,64,64,32,32" href="ref2">
</map>

<img src="image.jpg" usemap="#mymap">
<img src="image.jpg" usemap="#mymap">

and I would like the followed link to depend on:
1. which image was clicked,
2. where in the image the click was.
Above, I differentiate the locations in the image, but I wonder if there is a way to do something different depending on which image was clicked?

  • 1 1 Answer
  • 4 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-20T20:04:55+00:00Added an answer on May 20, 2026 at 8:04 pm

    You could write some JavaScript to clone the map, rename it and assign it to a list of images.

    or

    Capture the mouse click coordinates and determine where the click is is relation to which image. If they’re in a row you only need to check one coordinate.

    You can trigger JavaScript using the href:

    <area shape="polygon" coords="0,0,64,0,32,32" href="javascript:myFunction(1)">
    <area shape="polygon" coords="0,0,64,0,32,32" href="javascript:myFunction(2)">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two identical SQL Server tables ( SOURCE and DESTINATION ) with lots
We have lots of stored procedures which all contain a lot of comments. Is
I have lots and lots of C preprocessor #define statements, which make my C
I have 2 directories with lots and lots of images, say: color/ and gray/
I have lots and lots of files in a list called files , which
i have lots of images: <img src=images/img.jpg alt= /> <img src=images/img2.jpg alt= /> <img
I have a large tree-like data structure of objects which behave mostly identical but
I have lots of points (40-100) that I am using to construct a polygon
I have lots and lots of UIButtons, kept in a UIScrollView, all of which
I have lots of details. I want to stack them within an array, can

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.