2010-12-16 3 views
1


fancybox 단일 이미지 제목 안에 링크를 만들려고합니다. 다른 팬시 박스 창 (마녀는 인라인입니다)으로 리디렉션하고 싶습니다 ...
전체 단일 이미지를 링크로 만드는 스크립트가 있는데, 이것은 앵커 제목 대신 내 문서 제목을 대상으로합니다 ... 누군가가 그것을하는 방법에 대한 해결책이나 더 좋은 아이디어를 갖기를 바랍니다 !! :)

감사합니다. 감사합니다. :)
은 BTW : 나는 거의Fancybox 제목 링크

$(document).ready(function() { 

$("a.fancybox").attr('rel', 'gallery').fancybox(); 

$("a.fancylink").fancybox({ 
'title': this.title, 
'titlePosition': 'over', 
'titleFormat': function() { 
return '<span id="fancybox-title-over" style="background: url();"></span>'; 
}, 
'onComplete': function() { 
goTo = this.title; 
$("#fancybox-title").css({ 
'top':'0', 
'bottom':'0' 
}).bind('click', function() { 
$.fancybox.close(); 
return document.location.href=goTo; 
}); 
} 
}); 
}); 

답변

6
<a class="gallery" href="delete/big.png" title="text about the project :: <a href='http://www.someclient.com'>Launch website</a>"><img src="delete/thumb.png" width="115" height="115" alt="" /></a> 

$('a.gallery').fancybox({ 
'titlePosition' : 'inside' 
}); 
+0

나는 어디에서이 아이디어를 얻을 않았다 요청할 수 있습니다 ... 어쨌든 깊이에서 .. 스크립트로 일한 적이있다? 그것은 그들의 문서 어딘가에 있습니까? 나는 그것을 발견 할 수 없었다. 감사! – jaminroe

관련 문제