select top 5 id,title,intro,picurl from KS_Article Where slide=1 and verific=1 order by id desc
<div id="f_div">
<!--图片区域-->
<div id="f_imgDiv">
[loop=5]
<a href="{$Field(id,GetInfoUrl,1,1)}" target="_blank"><img src="{$Field(picurl,Text,0,...,0,)}" border="0" /></a>
[/loop]
</div>
<div id="f_infoDiv">
<div id="f_line"></div>
<!--数字按钮区域-->
<div id="f_buttonDiv">
<div class="bg"><a href="javascript:void(0)" class="" focusclass="on" normalclass="">1</a></div>
<div class="bg"><a href="javascript:void(0)" class="" focusclass="on" normalclass="">2</a></div>
<div class="bg"><a href="javascript:void(0)" class="" focusclass="on" normalclass="">3</a></div>
<div class="bg"><a href="javascript:void(0)" class="" focusclass="on" normalclass="">4</a></div>
<div class="bg"><a href="javascript:void(0)" class="" focusclass="on" normalclass="">5</a></div>
</div>
<div id="f_textbg"></div>
</div>
</div>
<!--焦点文字区域-->
<div id="f_text">
[loop=5]
<label><a href="{$Field(id,GetInfoUrl,1,1)}" target="_blank" class="noline white b">{$Field(title,Text,20,...,0,)}</a></label>
[/loop]
</div>
<script>
var a=new PicFocus("f_imgDiv","f_text","f_buttonDiv","5000");//4000为切换时间,默认为5秒,此处指定4秒
a.init();
a.play();
</script>
最下面那个loop的内容始终是空白的。最新的5.52版测试!