2011-09-12 89 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