Try
jQuery(document).ready(function ($) {
$("#notifications").on('click', function () {
$('#notifications_show').stop().slideToggle("slow");
});
$('#notifications').hover(function () {
var $target = $('#notifications_show');
clearTimeout($target.data('hoverTimer'));
}, function () {
var $target = $('#notifications_show');
var timer = setTimeout(function () {
$target.stop(true, true).slideUp();
}, 200);
$target.data('hoverTimer', timer);
});
$('#notifications_show').hover(function () {
clearTimeout($(this).data('hoverTimer'));
}, function () {
var $target = $(this);
var timer = setTimeout(function () {
$target.stop(true, true).slideUp();
}, 200);
$target.data('hoverTimer', timer);
});
});
Demo: Fiddle