jQuery工具提示,隐藏后..时间 [英] jQuery tooltip, hide after.. time

查看:102
本文介绍了jQuery工具提示,隐藏后..时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Flowplayer.org工具提示,我希望它在4秒后消失。

I'm using the Flowplayer.org Tooltips and I'd like it to disappear after 4 seconds.

这是它的代码,任何人都可以帮忙?

Here's the code for it, can anyone help?

$("#search").tooltip({ offset: [45, 170], effect: 'slide' });

谢谢:)

Thanks :)

推荐答案

编辑。
借用了另一个Stack溢出问题。
它适用于这里: http://jsfiddle.net/mmRu2/

jQuery.fn.delay = function(time,func){
    return this.each(function(){
        setTimeout(func,time);
    });
};

$('#search').delay(2000, function(){
    $('#search').fadeOut('fast');
    }
);

这篇关于jQuery工具提示,隐藏后..时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆