最近很多用户咨询如何修改大图上的链接文字,现将修改方法发布如下:
找到有弹出大图的模板页(如:index.html)顶部如下Js代码:
hs.graphicsDir = './tools/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
//添加以下五项:
hs.showCredits = true; //是否显示大图上的链接文字(false关闭,true开启)
hs.creditsText = 'Powered by SongCMS'; //大图上的链接文字
hs.creditsHref = 'http://www.songcms.com'; //图片上的文字链接地址
hs.creditsTarget = '_blank'; //文字链接打开窗口
hs.creditsTitle = 'Go to the Highslide JS homepage'; //链接说明文字
hs.addSlideshow({
interval: 5000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
opacity: .75,
position: 'bottom center',
hideOnMouseOut: true
}
});