【发布时间】:2014-05-02 20:14:49
【问题描述】:
如何使用按钮助手和缩略图助手添加 fancybox?
是否可以将按钮(按钮助手)放在图像下方,以便我可以观看并选择我想看的内容?
按钮
$(document).ready(function() {
$(".fancybox-button").fancybox({
prevEffect : 'none',
nextEffect : 'none',
closeBtn : false,
helpers : {
title : { type : 'inside' },
buttons : {}
}
});
});
和缩略图代码
$(document).ready(function() {
$(".fancybox-thumb").fancybox({
prevEffect : 'none',
nextEffect : 'none',
helpers : {
title : {
type: 'outside'
},
overlay : {
opacity : 0.8,
css : {
'background-color' : '#000'
}
},
thumbs : {
width : 50,
height : 50
}
}
});
});
我对 JavaScript 有点陌生,我无法让它工作。
我想要做的是将它们混合在一起并将按钮放在底部
附:我还可以使用 fancybox 缩略图助手来处理 Youtube 视频吗?
【问题讨论】:
标签: button fancybox thumbnails helper