Toon posts:

[js] x - y coordinaat in een plaatje bij onclick

Pagina: 1
Acties:
  • 36 views sinds 30-01-2008

Verwijderd

Topicstarter
hoi kan iemand mij vertellen hoe ik hier achter kan komen?

ik heb een plaatje en als iemand daar in klikt wil ik het x/y coordinaat hebben.
x = 0, y = 0 is in dat geval helemaal linksboven in het plaatje.

is het mogelijk om dit cross(javascript)browser te maken?

  • Pelle
  • Registratie: Januari 2001
  • Laatst online: 29-08 10:04

Pelle

🚴‍♂️

Ja, dat kan.

Hints:
event.x
event.y
document.onmousedown
document.body.scrollTop
document.body.pageYOffset

Dit topic is gesloten.