织梦CMS AJAX分页,可自定义typeid,调取任意内容

第一步:  把下面这段代码放在html的 head之间

<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
 <script language="javascript">
 <!--
 function multi(pagenum,tagid)
     {
       var taget_obj = document.getElementById(tagid);
       var taget_obj_page = document.getElementById("page_"+tagid);
       myajax = new DedeAjax(taget_obj,false,false,'','','');
      myajax.SendGet2("./arcmulti.php?mtype=0&pnum="+pagenum+'&tagid='+tagid);
     myajax = new DedeAjax(taget_obj_page,false,false,'','','');
      myajax.SendGet2("./arcmulti.php?mtype=1&pnum="+pagenum+'&tagid='+tagid);
      DedeXHTTP = null;
    }
 -->
 </script>

第二步:在需要的地方写上调用标签,和分页的标签即刻

 

{dede:arclist  flag='c' row='16'  tagid='sxygl' pagesize='2' typeid='5' }

    [field:title/]

{/dede:arclist}

 

{dede:arcpagelist tagid='sxygl'/}

 

你可能感兴趣的:(织梦CMS AJAX分页,可自定义typeid,调取任意内容)