开发者

jQuery qtip: amend hover in order to include link in tooltip?

I'm using qtip for jQuery tooltips, which is very good.

However, I can't work out how to fix the hover in order to include a link in开发者_运维知识库 the tooltip text.

By default, the tooltips vanish as soon as you stop hovering over the tooltipped element - so you can't move your mouse over the tooltip itself, in order to click on the link.

Anyone know a way round this?

Thanks!


fixed: true of hide option is intended to do that:

$('#content').qtip(
{
      content: 'This tooltip wont hide as long as mouse is over it',
      hide: { when: 'mouseout', fixed: true }
});

see http://craigsworks.com/projects/qtip/docs/reference/#hide-fixed for details


Maybe you could take a look at the beforeHide callback? If you return false in that callback, it will not be hidden, thus allowing you to include a clickable link in the tooltip.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜