开发者

Move mouse cursor on an element

How can I change position of the mouse cursor on an element when page loading 开发者_JAVA技巧is over with jQuery?


This is not possible.

I also disagree with highjacking the users mouse position, even if it were possible. If you did that to me as a user I would immediately leave your site.

JavaScript was designed this way on purpose. Imagine the internet as it is today with all the crappy sites and exploits out there, mix in the ability to control the users mouse and you have a much worse experience.

Let your users decided what they want to click on.


I think you can redraw the whole content of your web page so that the element you want get under the cursor. “ψ(`∇´)ψ

Another solution would be to move the window so that it gets where you want “ψ(`∇´)ψ


Javascript isn't able to move the mouse cursor -- it would be annoying as all get out if it could do this.


If you're wanting to physically move the mouse for the user, this can not be done with Javascript or any other typical web technology.

I'd say I'm sorry, but I'm not. That's one of the worst possible things you could do to a user.


Fortunately that's not possible with Javascript or any other typical/common technology. Imagine not having the free will on what you click on.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜