我需要在jQuery UI工具提示中添加一个预延迟,但似乎无法弄清楚 [英] I need to add a predelay to jQuery UI Tooltips but can't seem to figure it out

查看:59
本文介绍了我需要在jQuery UI工具提示中添加一个预延迟,但似乎无法弄清楚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在jQuery UI工具提示上添加一个预延迟.我正在使用最新版本(1.9),并希望将提示悬停2秒后再打开提示.

I need to add a predelay on my jQuery UI tooltips. I am using the most recent version (1.9) and would like the tips to open 2 seconds after they are hovered over.

我使用以下命令调用标题中的提示:

I am calling the tips in my header using:

<script>
    $(function() {
        $( document ).tooltip({ predelay:2000,});   
    });
</script>

但是当他们被解雇时,他们没有任何延迟...任何帮助吗?

But when they are fired, they do not have any delay whatsoever... any help?

推荐答案

使用此

$( "#elementid" ).tooltip({
  show: {
    effect: "slideDown",
    delay: 250
  }
});

这篇关于我需要在jQuery UI工具提示中添加一个预延迟,但似乎无法弄清楚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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