Reputation: 39
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?
Upvotes: 3
Views: 5758
Reputation: 168843
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.
Upvotes: 1
Reputation: 1719
Absolutely not. The ramifications of being able to manipulate the mouse in any way from untrusted client side Javascript would be horrific, at best.
Upvotes: 3
Reputation: 41862
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!
;)
Upvotes: 5
Reputation: 700790
No, there isn't. You can't move the mouse pointer using client script.
Upvotes: 6