<a id="attachment3655" rel="Lightbox_109160" href="https://xenogamers.org/attachment.php?attachmentid=3655&d=1350682390">
<img class="thumbnail" border="0" style="float:CONFIG" alt="Click image for larger version. Name: 253635_10150631007825720_595485719_18819556_7955719_n.jpg Views: 32 Size: 100.9 KB ID: 3655" src="https://xenogamers.org/attachment.php?attachmentid=3655&d=1359000187&thumb=1" title="Click image for larger version. Name: 253635_10150631007825720_595485719_18819556_7955719_n.jpg Views: 32 Size: 100.9 KB ID: 3655">
</a>
$(document).ready(function () {
$("#attachment3655").fancybox({
openEffect: 'none',
closeEffect: 'none'
});
});
根本不会识别id,我无法弄清楚原因。我无法轻易更改上面的源代码,所以我无法找到一种方法来只使用jquery。
我一直在这里工作:http://jsfiddle.net/2k8EP/226/
答案 0 :(得分:2)
只需将type: "image"
添加到您的API选项
$(document).ready(function () {
$("#attachment3655").fancybox({
openEffect: 'none',
closeEffect: 'none',
type: "image"
});
});
BTW,记录HERE,标签常见问题解答,第5号。