I have a slideshow that opens when a thumbnail is clicked. Now I would like to know if there is a way to re-position the mouse with jQuery over the control elements of the slideshow?
4 Answers
No, there isn't. You can't move the mouse pointer using client script.

- 687,336
- 108
- 737
- 1,005
Yes there is! (But not by much, and not in a useful way.)
You can set a custom cursor that looks like a mouse pointer. This way, you can get about 8 pixels movement of the mouse pointer.
Anything is possible!
;)

- 41,293
- 8
- 87
- 103
-
1Wow. Now that's what I call thinking outside of the box. +1 for that! Not useful in any meaningful way - not to mention you can't guarantee that it'd look the same as the end-user's real pointer - but I'm just in awe at the audacity to even think about it :-). – Spudley Sep 21 '10 at 13:12
-
Interresting twist :), although the cursor will only appear to move while the hotspot remains in the same place, so you won't click where you think you do... – Guffa Sep 21 '10 at 13:16
Absolutely not. The ramifications of being able to manipulate the mouse in any way from untrusted client side Javascript would be horrific, at best.

- 1,713
- 9
- 17
Sorry, it can't be done. There is no way to reposition the mouse pointer using JQuery or Javascript. The mouse pointer is controlled by the operating system, not the browser.
The best you can do is change the style of the mouse pointer. This can be done in CSS or JS/JQuery, by changing the cursor
style.
Normal usage would be to change it to a 'busy' pointer while you process something, etc.
If you want to hide it completely, try cursor:none;
though I'm not sure how well supported this is. If it doesn't work for you, it is also possible to set it to an image, which means you could hide it by using a completely transparent graphic. But note that this feature definitely does have cross-browser compatibility issues.

- 166,037
- 39
- 233
- 307