setTimeout mouseenter, clearTimeout mouseleave, , , .
, . , , , .
, :
$(function() {
"use strict";
var $container = $("#container"),
timeout, self;
$container.find("div").each(function() {
$(this).hover(
function() {
self = this;
timeout = setTimeout(function() {
$(self).css({
width : 500,
height: 500
});
}, 500);
},
function() {
clearTimeout(timeout);
$(this).css({
width : 300,
height: 300
});
}
);
});
});
: http://jsfiddle.net/sQVe/tVRwm/1/
, , 500 .
.each() , .hover() div. .each(), , , hover.