I would like to hotspot to areas in an image displayed on an html page.
However this image changes width and height based on the display screen:
<img height="100%" width="100%" src="img.png"/>
How shall I hotspot it?
I was thinking of a function that maps the original coordinates to those of the resized image.
You could place the image and hotspots in a relatively positioned element and then position the hotspots absolutely using percentages:
CSS
HTML
Update
If you are going to use a map then I suggest you calculate new co-ordinates rather than use percentages. This can be quite easily done using the following equation: