$("#container").mousestop(function, [options]);
A jQuery plugin that detects a mouse stop event over a given element. A mouse stop is indicated by a period of time over which the mouse does not move, the default is 300 milliseconds. It also supports a "timeToStop" option allowing a "grace" period of time for the event to trigger.$("#container").mousestop(function, [options]); |
Time user has from mouseover even to trigger the onStop. If this time elapses nothing happens on stop. $("#container").mousestop(function(){//do something}, {timeToStop: 2000}); default: null values: null or <integer> |
|
This is how long the mouse has to go without movement to be considered a stop. $("#container").mousestop(function(){//do something}, {delayToStop: "300"}); default: 300 values: <integer> |
|
Function to call when mouse leaves the element. $("#container").mousestop(function(){//do something}, {onMouseout: function(e){}}); default: null values: function(){} |
|
Function to call when the stop is triggered and the mouse moves again. $("#container").mousestop(function(){//do something}, {onStopMove: function(e){}}); default: null values: function(){} |