J
Jay
Hi, I'm having a problem getting XY coordinate in my image in firefox and
netscape.
This is only working at IE
function getImageXY(evt1) {
if ('number' == typeof evt.offsetX) { // MSIE
alert("MSIE");
img_x = evt1.offsetX;
img_y = evt1.offsetY;
}
var coordinates = offsetX: ' + offsetX+ ', offsetY: ' +offsetY;
alert (coordinates);
}
I tried to use offsetLeft and offsetTop in firefox and netscape. Whenever I
change viewport(scrolling), it got goofed.
How can I solve this?
Thanks.
netscape.
This is only working at IE
function getImageXY(evt1) {
if ('number' == typeof evt.offsetX) { // MSIE
alert("MSIE");
img_x = evt1.offsetX;
img_y = evt1.offsetY;
}
var coordinates = offsetX: ' + offsetX+ ', offsetY: ' +offsetY;
alert (coordinates);
}
I tried to use offsetLeft and offsetTop in firefox and netscape. Whenever I
change viewport(scrolling), it got goofed.
How can I solve this?
Thanks.