jQuery - mouseover and mouseout with delay
var timer;

$('.my-div').hover(function() {
    clearTimeout(timer);
    timer = setTimeout(function() {
        // Mouse Over
    }, 1000);
}, function() {
    clearTimeout(timer);
    timer = setTimeout(function() {
        // Mouse Out
    }, 1000);
});