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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:42:22+00:00 2026-05-13T06:42:22+00:00

Have small web page at www.peterbio.com/mom/test.htm Someone wrote the code with mouse over and

  • 0

Have small web page at
http://www.peterbio.com/mom/test.htm

Someone wrote the code with mouse over and creating image map. When you click on one of the purple balloons another image shows up.

  1. ***Need some help adding more code so that I can add another rollover-mouseover picture to a different balloon in image. I do not know how. But with an example and addition to the code at page above I can learn a little.

Then I can do the same so that all balloons in picture will do a mouseover and show other JPG’s (I will add different images later). You can use the same jpg out there to add a 2nd, 3rd, etc rollover image.

  1. ***Also need to know what free map program I can use to create image map so I can do same with rest of balloons —UNLESS— you are so kind as to add other coordinates to image map and use same image for all the other balloons.

Not sure if images will need to be prefeteched or not. They will be about 110k or less.

Thanks so much for your kind help. Trying to just do something for my family since my mother passed away. A coping thing I suppose.
PC

  • 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-13T06:42:22+00:00Added an answer on May 13, 2026 at 6:42 am
    <map name="momMap" id="momMap">
    

    Each area is a balloon in this case, define by the coordinates, then the action “onmouseover” triggers the javascript function “changeImage” that takes an attribute “newimage” which is the name of the image to show.

    The coordinates of the ballon you want to set up are inserted by pairs. For example 0,0 would mean the top left corner, the more pairs you add, the more vertex your shape has, the area formed joining those vertex would be the one affected by the javascript action.

    <area shape="poly" coords="326,93,316,136,275,165,250,163,235,127,261,100,286,66,308,68" href="#" onmouseover="changeImage('momf.jpg')" onmouseout="resetImage()"/> 
    

    So “poly” sets the area type to polygon, and coords defines where and how many vertex there are. Try to keep those vertex coordinates in order, to avoid confusing some browsers.
    There are also other shapes you can use apart from the polygon, those are, circles and rectangles. The use of those types of areas is described here.

    You asked for an example, this will show the same image (since I don’t know any other image in that folder) in a 100px square from the top left corner of the parent image:

    <area shape="poly" coords="0,0,100,0,100,100,0,100" href="#" onmouseover="changeImage('momf.jpg')" onmouseout="resetImage()"/> 
    

    So in conclusion, you just need to set up a new area for each balloon, or for that matter any area of the image you want a hover effect on. To ease you the paid of finding the coords on the image, I’ve located this script that will ease you the task

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

Sidebar

Ask A Question

Stats

  • Questions 256k
  • Answers 256k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Have you got android.content.res.Configuration in your import statements? Eclipse can… May 13, 2026 at 10:37 am
  • Editorial Team
    Editorial Team added an answer I fixed the problem by simply rebuilding the most recent… May 13, 2026 at 10:37 am
  • Editorial Team
    Editorial Team added an answer Use the parentheses for grouping: /!(cmd1|cmd2|cmd3) (.*)/ The brackets […]… May 13, 2026 at 10:37 am

Related Questions

I had a bunch of controls that I displayed, hid, enabled and disabled based
Developing is more of a hobby at the moment; so apologies if this is
I have a problem when updating the source of an ASP ListBox in an
I have a custom jQuery script that works fine in all bowsers but one
I have a webpage where I want the user to see a new image

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.