File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes HTML Client-Side Image Map Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML Client-Side Image Map" Watch "HTML Client-Side Image Map" New topic

HTML Client-Side Image Map

Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
To create a client-side image map , include the usemap attribute as part of the img tag.
Its value is the URL of a <map> segment in an HTML document that contains the map coordinates and related link URLs.
The document in the URL identifies the HTML document containing the map ; the fragment identifier in the URL identifies the map

Most often , the map is the same document as the image , and the URL can be reduced to the fragment identifier : a pound sign #
followed by the map name. HTML & XHTML : The Definitive Guide page 192.

I can code the second as follows (below) but how do I code the first ?

Thank you.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Please repost your code and check the "Disable HTML in this message" checkbox

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Any tutorial should show you how to do it

In this day in age, I would not use an image map.

I agree. Here's the link:
subject: HTML Client-Side Image Map
Similar Threads
Display jpeg file in jsp page
Any information about ImageMap ?
Switch Image "and" Pop up Window by Clicking
Help me, please!
window print problem