This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes help with image coordinates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "help with image coordinates" Watch "help with image coordinates" New topic
Author

help with image coordinates

Macij Nowak
Greenhorn

Joined: May 24, 2012
Posts: 1
ok, so i have an image, lets say it is cow.
i have to make script which shows me information about after clicking on the part of the body, for example head. i have an array with body parts along with their coordinates in javascript (width, height and top/left position). how do i do it? onclick + switch?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

Why don't you just us an image map to begin with?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with image coordinates