Dynamic Cusor co-ordinates at the mouse cursor...

D

Domestos

Okay,

I need to be able to display cursor co-ordinates are the cursor.

I have found plenty of scripts that show cursor co-ordinates in fields at
the top of the page
I have found plenty of scripts that show cursor co-ordinates in the status
bar too
I have found plenty of scripts that show text following the cursor.

But I have yet to find a script that can show the co-ordinates following the
cursor and are active (i.e. change when I move the mouse !!

Please help

Thanks
Andy Mak
 
N

Neredbojias

With neither quill nor qualm, Domestos quothed:
Okay,

I need to be able to display cursor co-ordinates are the cursor.

I have found plenty of scripts that show cursor co-ordinates in fields at
the top of the page
I have found plenty of scripts that show cursor co-ordinates in the status
bar too
I have found plenty of scripts that show text following the cursor.

But I have yet to find a script that can show the co-ordinates following the
cursor and are active (i.e. change when I move the mouse !!

Please help

Thanks
Andy Mak

Make or find a javascript which positions to the coordinates. Getting
the coordinates is the hard part; position something to them is easy.
 
D

Domestos

Make or find a javascript which positions to the coordinates. Getting
the coordinates is the hard part; position something to them is easy.

Thanks - buts thats not much really :( your sentance didnt make much
sense...
 
N

Neredbojias

With neither quill nor qualm, Domestos quothed:
Thanks - buts thats not much really :( your sentance didnt make much
sense...

Okay, I've re-read your original post and find that you are (ta da!)
right. This line:

suggests you will need to employ the "onmousemove" event function.

To outline:

* Make/acquire a routine to get the mouse coordinates.
* Make/acquire a routine to position what you wish based on these
coordinates. Don't forget you will have to allow for the width and
height of the re-po'ed element/container and provide a suitable offset.
* Put both routines in a function that is called by the "onmousemove"
event handler.

I've done this a number of times in the past and it isn't exceptionally
hard but it is time consuming.
 
D

Domestos

I've done this a number of times in the past and it isn't exceptionally
hard but it is time consuming.

The problem I have is that I know nothing about javascript... an cannot
understand it when I do read it...

I am looking for somthing online - a script I can just download or for
someone to type it up for me in here...

Thanks
 
D

de_doos

I am looking for the answer myself and i ran into this side. So far i
doesnt look very promissing. To make things worse, I dont believe it
possible. I think it has something to do with security reasons. since
mouse is a key player in the cpu and you dont want to be hacked by
javascript program.

I may be mistaken ofcourse.

in fact, i hope i am and someone gives the key to the answer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top