确定鼠标是否仍在javascript/jQuery中? [英] Determine if mouse is still in javascript/jQuery?

查看:109
本文介绍了确定鼠标是否仍在javascript/jQuery中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果鼠标静止不动一段时间,我希望能够使用jQuery触发事件.

I'd like to be able to use jQuery to trigger an event if the mouse has been stationary for a certain amount of time.

有什么想法吗?我什至不知道从哪里开始!

Any ideas? I'm not even sure where to start!

推荐答案

idleTimer插件可以用于此目的.这是运行中的插件的不错的演示.

There's the idleTimer plugin which could be used for this purpose. And here's a nice demo of the plugin in action.

这篇关于确定鼠标是否仍在javascript/jQuery中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆