View Full Version : help with image coordinates
thanks for reply.
the problem is i can't edit index.html file and body contains only something like that:
<div id="body_map"><img src="body.jpg"></div>
i cant add onclick or usemap :S
Sorry for confussion, but at the time i was posting i didn't know that :). Neither i can't split image, it's for my class and those are requirements.
As i said, html looks like above and js is an array with name of body part, and it's position(top, left) and size(height,width).
My newest guess is to find position of x and y using addEventListener, here's an example:
but i don't understand why it works only with <table> tags..
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.