<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