This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: HTML Client-Side Image Map
Similar Threads
Any information about ImageMap ?
Switch Image "and" Pop up Window by Clicking
Help me, please!
Display jpeg file in jsp page
window print problem