<a class="fancybox-effects-c" rel="gallery1" href="images/large/9.png" title="project description here >> <a href='http://www.google.com'target='_blank'>View website</a>"> <img src="images/thumbs/107.png" alt="" /></a>
一个链接,但在徘徊它显示的代码。经过许多事情后,我决定将标题描述切换到alt
字段将解决我的问题,但无法弄清楚如何做到这一点。 我假设它在jquery.fancybox.js文件中,我只需要将其切换。谁能帮忙?
更新:我发现了一个更好的解决方案,而无需移动标题描述中高音场我可以用这个代码
var tempTitle = "";
$('a[title]').hover(
function(e){
e.preventDefault();
tempTitle = $(this).attr('title');
$(this).attr('title', '');
$(this).mousedown(
function(){
$(this).attr('title', tempTitle);
}
);
}
,
function() {
$(this).attr('title', tempTitle);
}
);
就像一个魅力禁用悬停功能!
我误投关闭这个问题,认为它与另外一个,是我不好复制。请忽略我的近距离投票。 – JFK