getXYclicked() on an image, on a webpage
-
Hi! I need to do something in Javascript/DHTML wich i dont know if it's possible at all. I'd like to click on an image, and get the (x,y) point (on the image) that i clicked on. Is this possible? Thank you in advance for any help! :)
Ricardo
-
Hi! I need to do something in Javascript/DHTML wich i dont know if it's possible at all. I'd like to click on an image, and get the (x,y) point (on the image) that i clicked on. Is this possible? Thank you in advance for any help! :)
Ricardo
Hook up an onmousedown handler, which looks at event.clientX / event.clientY
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
-
Hi! I need to do something in Javascript/DHTML wich i dont know if it's possible at all. I'd like to click on an image, and get the (x,y) point (on the image) that i clicked on. Is this possible? Thank you in advance for any help! :)
Ricardo
hey..u can do it simply... using AJAX -Jaavascript..there are coordinates like OFFsetX..and something like that...go to the w3schools.com for javascript functions..u can do it..i hav done bfore..
Rameez Mohammed India