|
|
Q326 How can I extract the X and Y coordinates from an image map, and use then to perform further processing in the current document?
irt.org | Knowledge Base | JavaScript | Image | Q326 [ previous next ] Q326 How can I extract the X and Y coordinates from an image map, and use then to perform further processing in the current document?AFAIK it is not possible to get the coords of a client side image map. If it were me I would use frames with one frame hidden and a server side image map. When the image is clicked load the document into the hidden frame, and then extract the x and y coordinates from the location and then pass them back to the visble frame for further processing: top.html:
xyCoords.html:
apage.html:
|
-- div -->
|