【发布时间】:2012-03-26 22:20:22
【问题描述】:
如何在不丢失测试文本和不克隆的情况下将方向从“n”更改为“w”?
$(".tipsy").live('mouseover',function() {
$(this).tipsy({gravity: "n", html: true});
$(this).tipsy("show");
});
$(".tipsy").live("click",function() {
$('.tipsy').remove();
$(this).tipsy({gravity: 'w', html: true});
$(this).tipsy("show");
});
<div class="tipsy" title='<u>test link</u>'>TestTestTestTestTestTestTestTestTestTestTest</div>
这是一个小提琴:http://jsfiddle.net/nQvmw/23/
【问题讨论】:
标签: jquery click mouseover tipsy