This is what I have currently:
$(\"#cart-summary\").mouseenter(function () {
$(\'.flycart\').delay(500).slideDown(\'fast\');
});
$(\".flycart\").mouseleave(f
You could do:
var timeout,
$flycart = $(".flycart"),
$summary = $("#cart-summary"),
delay = 500;
$summary.mouseenter(function () {
if (timeout) window.clearTimeout(timeout);
timeout = window.setTimeout(function(){
if ( $flycart.is(":visible") ) {
$flycart.slideDown('fast');
}
}, delay);
});
$flycart.mouseleave(function () {
if (timeout) window.clearTimeout(timeout);
timeout = window.setTimeout(function(){
if ( $flycart.is(":visible") ) {
$flycart.slideUp('fast');
}
}, delay);
})...