我有jQuery插件Tooltipsy,可为链接生成工具提示.在此工具提示中,我还有其他指向相关对象的链接.我希望它在初始链接的上方弹出并停留,如果我将鼠标移到该链接上以单击该链接,则停留在该位置.这可能吗?有人知道怎么做吗?
I have the jQuery plugin Tooltipsy to generate a tooltip for a link. In this tooltip I have other links to related objects. I would like it to pop up just above the initial link and stay if I move the mouse to it to click a link. Is this possible? Does anyone know how to do it?
推荐答案我没有让它保持打开状态,迫不及待,所以我改用另一个名为简单提示,它提供了我所需的功能.
I didn't manage to get it to stay open and couldn't wait any longer so I changed to another tooltip plugin called simpletip that provided the functionality that I needed.
Simpletip本身无法从链接中获取title属性,因此这是我用来实现此目的的代码.我将代码更改为采用数据标题(符合HTML5的标准)代替标题,因此不必从默认显示中阻止所有标题:
Simpletip could not get the title attribute from the links by itself so this is the code I used to achieve that. I changed the code to take data-title (HTML5 compliant) instead for title so that I didn't have to block all titles from default showing:
$(".order_tooltip").simpletip({ fixed: true, position: 'top', onBeforeShow: function(){ this.update(this.getParent().data('title')); } });更多推荐
如何使工具提示停留,以便可以单击其中的链接
发布评论