将鼠标光标移动到元素上

发布于 2024-08-18 05:26:23 字数 42 浏览 1 评论 0原文

当页面加载结束时,如何使用 jQuery 更改鼠标光标在元素上的位置?

How can I change position of the mouse cursor on an element when page loading is over with jQuery?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

紙鸢 2024-08-25 05:26:23

这是不可能的。

我也不同意劫持用户的鼠标位置,即使这是可能的。如果您对我作为用户这样做,我会立即离开您的网站。

JavaScript 是故意这样设计的。想象一下当今的互联网,那里有所有蹩脚的网站和漏洞,再加上控制用户鼠标的能力,你会得到更糟糕的体验。

让您的用户决定他们想要点击的内容。

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.

睡美人的小仙女 2024-08-25 05:26:23

我认为您可以重新绘制网页的整个内容,以便您想要的元素位于光标下方。 “ψ(`∇´)ψ

另一种解决方案是移动窗口,使其到达您想要的位置 “ψ(`∇´)ψ

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 “ψ(`∇´)ψ

东风软 2024-08-25 05:26:23

Javascript 无法移动鼠标光标——如果它能做到这一点,那就太烦人了,因为所有人都会出去。

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

潇烟暮雨 2024-08-25 05:26:23

如果您想为用户物理移动鼠标,则无法使用 Javascript 或任何其他典型的 Web 技术来完成。

我想说我很抱歉,但我不是。这是你可以对用户做的最糟糕的事情之一。

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.

独闯女儿国 2024-08-25 05:26:23

幸运的是,这对于 Javascript 或任何其他典型/通用技术来说是不可能的。想象一下,您对点击的内容没有自由意志。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文