wood burning stoves
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "help with image coordinates" Watch "help with image coordinates" New topic

help with image coordinates

Macij Nowak

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

Joined: Jan 10, 2002
Posts: 63844

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

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