我敢肯定,这是一个简单的问题..我已经浪费了太多的时间已经在它jQuery的提示,使HREF标题消失
我有如下形象:
<img src="/_/img/icons/103-map.png" alt="Find Me" title="come and find me..." class="action findMe_map"/>
而下面JavaScript的使用jQuery的1.2.6工具:
<script>
$(document).ready(function() {
// create custom animation algorithm for jQuery called "bouncy"
$.easing.bouncy = function (x, t, b, c, d) {
var s = 1.70158;
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}
// create custom tooltip effect for jQuery Tooltip
$.tools.tooltip.addEffect("bouncy",
// opening animation
function(done) {
this.getTip().animate({top: '+=15'}, 500, 'bouncy', done).show();
},
// closing animation
function(done) {
this.getTip().animate({top: '-=15'}, 500, 'bouncy', function() {
$(this).hide();
done.call();
});
}
);
$('img.findMe_map').click(function() {
event.preventDefault();
console.log(this);
$('img[title]').tooltip({effect: 'bouncy'});
});
</script>
当我使用上面的代码,标题由消失输出和工具提示不显示我想这个问题解决
当我注释掉
click()
的提示行,单击图像,“来找我......”出现在安慰。
困惑。
由于浏览器经常会将'title'属性显示为工具提示,因此大多数工具提示插件会移除'title'属性以防止两者一次弹出。 – Blazemonger 2011-12-29 13:30:20