开发者

How to disable original img title when using qtip

I am using jquery 1.4.2 and qtip-1.0.js

in ie/7/6/8 whenever I hover over the image on which the tooltip is applied, I get the tooltip... but I also do get the original title... does not happen on the firefox though... Is there any option or setting specific to disable the img titl and just show the tooltip?

my code looks like this

$('.selector img[title]').qtip({style: {name: 'green'},
                tip: true
},
              sh开发者_开发问答ow: { delay: 100 },
              hide: { delay: 100 }
            });

Thanks


On images, IE will create a tooltip with the "alt" value, not the "title", so you'll need to remove the "alt" attribute as well.


You can simply call .removeAttr('title') after calling .qtip.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜