English 中文(简体)
Detect Detect
原标题:Detect mousemove with jquery

是否有办法探测到底部在酒类中移动什么时候?

最佳回答

是的,使用固定时间,并在停用时随时加以清除。 如果在固定时间规定的时间里停下来,则可以假定停用已经停止。 你们可以这样做:

var stop_timeout = false;
$(function() {
    $().mousemove(function() {
        clearTimeout(stop_timeout);
        stop_timeout = setTimeout(function() {
            alert("The mouse has stopped.");
        }, 1000);            
    });
});

每一次改变行动都要确定和放弃时间,但为了你们的目的,它应当努力。

问题回答

采用权势,对你来说都是如此。 它的间隔跟踪了你们的摩擦运动,并且知道在加速度放慢的时候(因此,你试图“真实”地控制一些东西)。

它也令人难以置信地容易使用。 你们基本上需要改变你们。

纽约总部

$( selec纽约总部r ).hoverIntent( ... )

rel=“nofollow noreferer” http://cherne.net/brian/resources/jquery.hoverIntent.html





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签