开发者

hoverintent function with a delay

开发者 https://www.devze.com 2023-02-21 03:02 出处:网络
I have the following hoverIntent function $(\".samplePepleCon\").hover(function() { var getId=$(this).attr(\'id\');

I have the following hoverIntent function

$(".samplePepleCon").hover(function() 
    {
        var getId           =   $(this).attr('id');             
        var getCompleteID   =   'DataInside_'+getId;                        
        $(this).find(".presTips").delay(800).fadeIn(1000);


        }, function() 
        {
            $(this).find(".presTips").fadeOut("fast");
        }

   开发者_运维技巧 );

I want the function() to be executed after a delay/pause of maybe 500ms.. Please help


It sounds like you're looking for the hoverIntent plugin.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号