2011-09-12 52 views
0

如何延迟qTip2插件关闭,以便用户可以点击工具提示中的链接?当您将鼠标悬停在我的网站上的电子邮件地址上时,我想要链接到社交网络。延迟qClip结束

回答

4

查看文档中的hide.fixed和hide.delay属性:

http://craigsworks.com/projects/qtip2/docs/hide/#fixed

hide.fixed:如果设置为true,如果鼠标悬停 在提示不会隐藏,使内容被点击和互动。 注意:添加隐藏延迟通常会在启用此选项时完成,以便 为隐藏之前用户提供鼠标悬停工具提示的时间。

http://craigsworks.com/projects/qtip2/docs/hide/#delay

hide.delay:时间以毫秒为单位设置当被hide.event上触发hide.target延迟 提示的隐藏

$('.selector').qtip({ 
    content: { 
     text: $('<a href="http://google.com">Visit Google</a>'), 
    }, 
    hide: { 
     fixed: true, // Let the user mouse into the tip 
     delay: 500 // Don't hide right away so that they can mouse into it 
    } 
}); 
+0

啊!谢谢,我会尽快尝试。我无法在文档中的任何地方找到它。 – JacobTheDev

+0

'show:{delay:700}'也适用于相反的情况。 – nipponese