{pc:content action="lists" catid="$catid" num="8" order="rand()" return="data"} <ul class="list3"> {loop $data $v} <li> <a href="{$v['url']}" target="_blank" title="{$v['title']}"{title_style($v[style])}>{$v['title']}</a> </li> {/loop} </ul> {/pc} 上述代码只做了一点修改:order="rand()",其它与正常调用一样。 |