This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML Client-Side Image Map" Watch "HTML Client-Side Image Map" New topic
Author

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
itself.

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
author
Rancher

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

Eric
Eric Pascarello
author
Rancher

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

http://www.javascriptkit.com/howto/imagemap.shtml

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

Eric
 
Have you checked out Aspose?
 
subject: HTML Client-Side Image Map
 
It's not a secret anymore!