原型/Scriptaculous 的悬停意图
最近遇到了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://spuntinu.net/insert -a-delay-on-large-drop-down-menu-with-prototype/ 用于实现这一目的。
现在,请参阅 http://backfromcamden。净/在大下拉菜单上插入延迟和原型/
[谢谢,乔纳森·戴]
http://spuntinu.net/insert-a-delay-on-large-drop-down-menu-with-prototype/ used to do the trick.
Now, see http://backfromcamden.net/insert-a-delay-on-large-drop-down-menu-with-prototype/
[Thanks, Jonathan Day]