Page 1 of 1

Value of mouses pisition.

Posted: Fri Mar 03, 2006 10:57 pm
by JellyFish
How do I get the value of mouse pisition? If this is Javascript then I guess this goes in the client side. Is there a php function that checks to mouses position or returns the mouse pisition?

Posted: Sat Mar 04, 2006 12:01 am
by hawleyjr
PHP is server side JavaScript is client side. You will need to get the mouse x and y via JavaScript and pass it to the PHP page. Prob. the best way would be to use AJAX.

Posted: Sat Mar 04, 2006 12:04 am
by JellyFish
okay. Thanks man. Would there be any function that would return the value in JavaScript?

Posted: Sat Mar 04, 2006 12:06 am
by hawleyjr