aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes help with image coordinates Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 56529
    
  14

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: help with image coordinates
 
Similar Threads
Frustrated with drawing shapes programmtically?
Putting an image over another image at particular coordinates
Click on different part of Image.
JLabel pan image
Getting coordinates on a image