【发布时间】:2014-09-14 06:33:27
【问题描述】:
我在我的网站中使用 highslide 库,有时不是一直,我使用的代码打印在屏幕上,但我不知道为什么,这是我的代码:
<script type="text/javascript">
hs3.graphicsDir = '<?echo $RootPath;?>/ExternalLibrary/highslide/graphics/';
hs3.align = 'center';
hs3.transitions = ['expand', 'crossfade'];
hs3.fadeInOut = true;
hs3.outlineType = 'glossy-dark';
hs3.wrapperClassName = 'dark';
hs3.captionEval = 'this.a.title';
hs3.numberPosition = 'caption';
hs3.useBox = true;
hs3.width = 600;
hs3.height = 400;
hs3.addSlideshow({
//slideshowGroup: 'group1',
interval: 5000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
position: 'bottom center',
opacity: 0.75,
hideOnMouseOut: true
},
thumbstrip: {
position: 'above',
mode: 'horizontal',
relativeTo: 'expander'
}
});
var miniGalleryOptions1 = {
thumbnailId: 'thumb1'
}
</script>
其中$RootPath 是php 变量,它的值是Portal。屏幕上打印的代码是 $RootPath 变量之后的代码,知道吗?
【问题讨论】:
标签: javascript php highslide