0

我需要工具提示的 javascript 代码在点击时出现 10 秒

大多数情况下不使用 html 代码或任何插件

$('a.pet_type_link').click(function() {
 //I need tooltip to appear for 10seconds
});

我正在使用 coffescript 和 haml 代码。

4

2 回答 2

0

检查此示例听起来与您的查询相似

http://jqueryui.com/tooltip/#custom-animation

于 2013-03-20T07:13:32.960 回答
0
  timeout = setTimeout(function () {
        $("#tooltip").hide('fast');//change these options 
    }, 500);

您在寻找工具提示超时吗?

根据您的要求更改超时功能的时间延迟。

于 2013-03-20T07:08:36.187 回答