将附件下载的文件放到网站目录下
自己修改一下调用地址
直接在内容页模板中添加下面的调用代码
<script type="text/javascript" src="[!--news.url--]skin/skin02/photo/jquery.min.js"></script> <link rel="stylesheet" href="[!--news.url--]skin/skin02/photo/css/style.css" /> <script type="text/javascript" src="[!--news.url--]skin/skin02/photo/jquery.aw-showcase.js"></script> <script type="text/javascript">
$(document).ready(function() { $("#showcase").awShowcase( { fit_to_parent: false, auto: true, interval: 3000, continuous: false, loading: true, tooltip_width: 200, tooltip_icon_width: 32, tooltip_icon_height: 32, tooltip_offsetx: 18, tooltip_offsety: 0, arrows: true, buttons: true, btn_numbers: true, keybord_keys: true, mousetrace: false, /* Trace x and y coordinates for the mouse */ pauseonover: true, stoponclick: false, transition: 'hslide', /* hslide/vslide/fade */ transition_delay: 0, transition_speed: 500, show_caption: 'onload', thumbnails: false, thumbnails_position: 'outside-last', thumbnails_direction: 'vertical', thumbnails_slidex: 1, dynamic_height: false, speed_change: true, viewline: false, custom_function: null }); });
</script>
<div class="container" style="margin: auto;"> <div id="showcase" class="showcase"> <?php $pic=explode("\\r\\n",$navinfor['morepic']); foreach($pic as $v) { if(!$v)continue; $picarr[]=explode("::::::",$v); } $picstr=''; foreach($picarr as $v) { $picstr.='<div class="showcase-slide"><div class="showcase-content"><img src="'.$v[0].'" alt="'.$v[2].'" /></div></div>'; } ?> <?=$picstr?> </div> </div>
上传以下附件: [下载 *.rar](文件大小:771.21 KB,下载次数:32)
|