i was wondering, if it is possible, with jquery, to give the cursor a speed so that it moves in one direction if the user isn't using the mouse?
Asked
Active
Viewed 1,179 times
2 Answers
1
You can't control the mouse cursor's position from Javascript.

kapa
- 77,694
- 21
- 158
- 175
-
Is there a possiblity giving the cursor a speed with something else than Javascript..? – Lieven May 19 '11 at 11:13
-
1No, these things are handled by the operating system (mouse sensitivity, etc.) and the browser cannot give control over them. – kapa May 19 '11 at 11:19
0
Though you can't move the mouse cursor, you can move the elements on your page, so it looks like the mouse cursor is moving...just a trick :)
I learned from this question Web browser: Hide mouse cursor that you can hide the mouse cursor, so I'm wondering that maybe you can hide it, then emulate a mouse cursor by your self...though it must be a huge project..
-
So there is absolutely no possibility of giving the cursor a default speed? But giving the wrapper div a default speed might be an option. How can that be done ? btw thx for the answers already :) – Lieven May 19 '11 at 11:18
-
-
The thing is I want to distract the users a bit by giving them a sort of resistance while moving the cursor and if it is not beeing moved it should move into the set direction. So using a kind of "fake" cursor wouldn't solve my problem :D – Lieven May 19 '11 at 11:40
-
1@Lieven I think that's not possible with JavaScript..imagine when you visit a web page, the cursor automatically move anywhere.. – wong2 May 19 '11 at 11:43
-
Yeah I know but that's what I'm willing to achieve, to try and distract the User, to measure his Concentration while using a distracting Interface :) – Lieven May 19 '11 at 12:37