原型/Scriptaculous 的悬停意图

发布于 2024-09-15 22:34:35 字数 335 浏览 1 评论 0原文

最近遇到了 jQuery 的 HoverIntent 插件。它的行为类似于常规的鼠标悬停或悬停观察者,但等待触发操作,直到/如果鼠标减慢或休息。通过调整,它可以使界面感觉更加人性化。

我想使用它的网站致力于 Prototype / Scriptaculous 框架,并且我非常不想将 jQuery 添加到其中。

在 Prototype / Scriptaculous 中是否有等效的方法来实现此行为,无论是本机还是使用附加脚本?

Recently came across the HoverIntent plugin for jQuery. It acts like a regular mouseover or hover observer, but waits to fire the action until/if the mouse slows down or rests. With tuning, it makes for interfaces that feel more human responsive.

The website I'd like to use it on is committed to a Prototype / Scriptaculous framework, and I'd very much like to not add jQuery to the mix.

Is there an equivalent way of achieving this behavior in Prototype / Scriptaculous, either natively or with an additional script?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文