function action(){
$(document).ready(function() {
$("a.opus").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition'  : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
}
}); });
}
<a class="opus" href="showimages/a.jpg" onclick="action()"><img src="showimages/f.jpg" /></a>我在这个fancybox效果前面还加多了一个jQuery的分页效果,然后在IE6里面可以弹出,但是在其他浏览器就不行,求请教~~~

解决方案 »

  1.   

    在火狐下用 firebug测试下,哪里有问题
      

  2.   

    是啊,火狐的这个插件谁用谁知道工具 > 附加组件 > 右上面搜索 firebug貌似第一个就应该是了
      

  3.   

    用完之后,它提示getAttributeNodeNS()已废弃,请用getAttributeNS() 替代,可是我查了我所有的js啊,都没有这个方法