You can use setTimeout
var delay=1000, setTimeoutConst;
$('.img').on('hover', function() {
setTimeoutConst = setTimeout(function() {
// do something
}, delay);
}, function() {
clearTimeout(setTimeoutConst);
});
More Related Contents:
- what is Efficient way to find tr using classname in ie
- Any Javascript GURU here to make this Script ? If Anchor is Changed Redirect the Page
- jQuery Data vs Attr?
- How can I determine the direction of a jQuery scroll event?
- jQuery ID selector works only for the first element
- Dynamically load JS inside JS [duplicate]
- Get class list for element with jQuery
- How to disable HTML links
- Cross-browser multi-line text overflow with ellipsis appended within a fixed width and height
- How to copy text to the client’s clipboard using jQuery? [duplicate]
- Sequencing ajax requests
- What is the cleanest way to get the progress of JQuery ajax request?
- How to detect window.print() finish
- How to style “input file” with CSS3 / Javascript? [duplicate]
- How to force reloading a page when using browser back button?
- (Deep) copying an array using jQuery [duplicate]
- How to get nth-child selector to skip hidden divs [duplicate]
- Does .css() automatically add vendor prefixes?
- jQuery Deferred and Dialog box
- How can I change the title of the document during .ready()?
- How to keep the menu state on page reload
- Convert Hex to RGBA
- Javascript Code works in jsfiddle and but not in the Browser [closed]
- JavaScript event registering without using jQuery
- How to unbind a specific event handler
- Trigger a select form element to show its options (open drop down options list) with Javascript
- jQuery when element becomes visible [duplicate]
- Detect backspace and del on “input” event?
- Uncaught ReferenceError: Invalid left-hand side in assignment
- Circumventing Chrome Access-control-allow-origin on the local file system?