<link rel="stylesheet" href="<?php echo config('view_replace_str.__STATIC__'); ?>/images/template/images/slide_004/slide.css">
<!--默认图片的尺寸如下, 如果不是这个尺寸的话,请修改下面CSS里边的所有参数-->
<div class="ck-slide004"  style="width:<?php echo $pic_width>10?$pic_width:400;?>px;height:<?php echo $pic_height>10?$pic_height:300;?>px;">
			<ul class="ck-slide-wrapper">
<?php if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>
				<li style="display:<?php echo $i==1?'':'none'; ?>">
					<a href="<?php echo $rs['url']; ?>"><img src="<?php echo $rs['picurl']; ?>"  alt="<?php echo $rs['title']; ?>" /></a>
				</li>
<?php endforeach; endif; else: echo "" ;endif; ?>				
			</ul>
			<a href="javascript:;" class="ctrl-slide ck-prev">上一张</a> <a href="javascript:;" class="ctrl-slide ck-next">下一张</a>
			<div class="ck-slidebox004">
				<div class="slideWrap">
					<ul class="dot-wrap">
<?php if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>
						<li class="<?php echo $i==1?'current':''; ?>"><em><?php echo $i; ?></em></li>
<?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
			</div>
		</div>
		
<script src="<?php echo config('view_replace_str.__STATIC__'); ?>/images/template/images/slide_004/slide.js" type="text/javascript"></script>
<script type="text/javascript">
$('.ck-slide004').each(function(){
	$(this).ckSlide({
		autoPlay: true, //自动播放
		dir: 'x', //x为水平移动，y 为垂直滚动
		interval:3000 //默认间隔3秒
					
	});
	$(this).find('img').css({"width":($(this).width())+"px","height":($(this).height())+"px"});
	$(this).find('.ck-slide-wrapper').css({"height":($(this).height())+"px"});
});
</script>