导航首页 » 网站优化

DedeCMS教程:arclist的分页使用方法

2023/03/11 12:32    魔司收录网    已浏览173次

DedeCMS教程:arclist的分页使用方法,希望对大家有所帮助。
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>

01 <script>
02 function multi(pagenum,tagid)
03 {
04 var taget_obj = document.getElementById(tagid);
05 var taget_obj_page = document.getElementById("page_"+tagid);
06 myajax = new DedeAjax(taget_obj,false,false,'','','');
07 myajax.SendGet2("/plus/arcmulti.php?mtype=0&pnum="+pagenum+'&tagid='+tagid);
08 myajax = new DedeAjax(taget_obj_page,false,false,'','','');
09 myajax.SendGet2("/plus/arcmulti.php?mtype=1&pnum="+pagenum+'&tagid='+tagid);
10 DedeXHTTP = null;
11 }
12 </script>
13 {dede:arclist tagid='index' pagesize='5'}
14 <li><b><a href="[field:arcurl/]" style="color: #FF6633">[field:title/]</a></b></li>
15 <p class="my_tj_info">[field:info/]...</p>
16 {/dede:arclist}
17 {dede:arcpagelist tagid='index'/}