Hi Stu. I want to mark two points on a map (so I can zoom in to a
subportion,
or not zoom, but select all the interesting items). So I'd like to get the
coordinates
first and just stuff them into some edit fields so the user can adjust them.
Also, having written a poor man's immediate fix version below that only
works
for IE, I can see that I'll also want to have the current position show in a
div.
My current hack:
<input type=image name=mymap onclick="return mapClick();">
and the script does:
function mapClick() {
document.forms[0]['pt'].value = Array(event.offsetX,event.offsetY);
return false;
}
I'm interested in the original question on a theoretical basis, but my
immediate interest is more practical in that the app is for my own editing
purposes.
I suspect you're correct that there are other ways to do this, and I'd
love to hear - my current knowledge of images/maps could stand bolstering.
I'm not sure I understand how to capture mouse coordinates with a
client side image map, though.
Csaba
"Stuart Palmer" <tr**********@youcant.com> wrote in message
news:2i************@uni-berlin.de...
What are you trying to do exactly? What do you plan to do with the x and y
values? Would an imagemap on the image not suffice?
Let us know.
Stu