Welcome Guest, Not a member yet? Register   Sign In
Mouse position in javascript
#1

[eluser]Sawariya[/eluser]
Hi Friends ,

How to get exact mouse position in javascript dynamically ...
var x=20;
var y=520;
document.getElementById("display").style.left=x+"px";
document.getElementById("display").style.top=y+"px";
This is my code...

anybody can help me ??
thanks in advance
#2

[eluser]Pascal Kriete[/eluser]
This is a tough one to get working on all browsers. Try the script at the bottom of this page.
#3

[eluser]Sawariya[/eluser]
Tanks inparo,,

i will try...




Theme © iAndrew 2016 - Forum software by © MyBB