我需要同时使用它们(fancybox按钮助手和缩略图助手)
我一次只能使用其中一个。
这些是每个函数的示例:http://fancyapps.com/fancybox/#examples http://fancyapps.com/fancybox/#examples
已经尝试使用这两个类:
<a class="fancybox-buttons fancybox-thumbs"
但这不起作用...
一次只有一个,例如:
<a class="fancybox-buttons"
or
<a class="fancybox-thumbs"
.
这些是每个的 javascript:
/*
Button helper. Disable animations, hide close button, change title type and content
*/
$('.fancybox-buttons').fancybox({
openEffect : 'none',
closeEffect : 'none',
prevEffect : 'none',
nextEffect : 'none',
closeBtn : false,
helpers : {
title : {
type : 'inside'
},
buttons : {}
},
afterLoad : function() {
this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
}
});
/*
Thumbnail helper. Disable animations, hide close button, arrows and slide to next gallery item if clicked
*/
$('.fancybox-thumbs').fancybox({
prevEffect : 'none',
nextEffect : 'none',
closeBtn : false,
arrows : false,
nextClick : true,
helpers : {
thumbs : {
width : 50,
height : 50
}
}
});
});
Thanks