答案 0 :(得分:0)
DEMO: http://jsfiddle.net/marcuswhybrow/3Upgq/
var timer = null;
$('button').focus(function() {
timer = setTimeout(function() {
// Zoom in here;
}, 2000);
}).blur(function() {
if (timer != null)
clearTimeout(timer);
});
DEMO: http://jsfiddle.net/marcuswhybrow/3Upgq/
IN CONTEXT DEMO: http://www.jsfiddle.net/jAxg9/34/