Here is a jQuery slide function I have applied to a div on hover in order to slide a button down.
It works fine except that now everytime someone moves in and out o
var time_id;
$("#NewsStrip").hover(
function () {
if (time_id) {
clearTimeout(time_id);
}
time_id = setTimeout(function () {
$("#SeeAllEvents").stop(true, true).slideDown('slow');
}, 2000);
}, function () {
if (time_id) {
clearTimeout(time_id);
}
time_id = setTimeout(function () {
$("#SeeAllEvents").stop(true, true).slideUp('slow');
}, 2000);
});