Hello, please help. There is such a script:
$(document).ready(function(){ function showProfileTooltip(e, id){ var top = e.clientY + 20; var left = e.clientX - 10; $('.p-tooltip').css({ 'top':top, 'left':left, }).show(); $.ajax({ url: 'friends/dynamic_frds.php?id='+id, beforeSend: function(){ $('.p-tooltip').html('Loading..'); }, success: function(html){ $('.p-tooltip').html(html); } }); } function hideProfileTooltip(){ $('.p-tooltip').hide(); } $('.fr').mouseover(function(e){ var id = $(this).attr('data-id'); showProfileTooltip(e, id); }); $('.p-tooltip').mouseleave(function(){ hideProfileTooltip(); }); }); How to make it so that when you hover on an object, the content is not immediately displayed, for example, a second after pointing, that is, if the user hovers over the block and waits a second, then download the content. Tell me please.