MrAdam Posted May 13, 2006 Share Posted May 13, 2006 Hi people. Im fairly new to javascript. I'm writing a script, could someone please write me a function to return the mouse co-ordinates and store them in 2 variables. So it would go like this:- someone runs the function- the x co-ordinate saved in a variable called "x-co"- the y co-ordinate saved in a variable called "y-co"Thanks alot if you can help.. Link to comment Share on other sites More sharing options...
scott100 Posted May 13, 2006 Share Posted May 13, 2006 This should cover it: http://www.w3schools.com/js/tryit.asp?file..._event_clientxyAll you need to do is change the variable names. Link to comment Share on other sites More sharing options...
MrAdam Posted May 13, 2006 Author Share Posted May 13, 2006 thankies.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now