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 ? ' ' + title : '') + '</span>';
}
}); });
}
<a class="opus" href="showimages/a.jpg" onclick="action()"><img src="showimages/f.jpg" /></a>我在这个fancybox效果前面还加多了一个jQuery的分页效果,然后在IE6里面可以弹出,但是在其他浏览器就不行,求请教~~~
$(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 ? ' ' + title : '') + '</span>';
}
}); });
}
<a class="opus" href="showimages/a.jpg" onclick="action()"><img src="showimages/f.jpg" /></a>我在这个fancybox效果前面还加多了一个jQuery的分页效果,然后在IE6里面可以弹出,但是在其他浏览器就不行,求请教~~~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货