發(fā)表日期:2017-11 文章編輯:小燈 瀏覽次數(shù):3241
織夢DedeCMS模板頁中實(shí)現(xiàn)arclist分頁效果
1,頭部必須引進(jìn) dede模板頁中實(shí)arclist 分頁效果
<script src=”{dede:global.cfg_cmsurl/}/include/dedeajax2.js” language=”javascript”></script>
<script>
function multi(pagenum,tagid)
{
var taget_obj = document.getElementByIdx_x(tagid);
var taget_obj_page = document.getElementByIdx_x(“page_”+tagid);
myajax = new DedeAjax(taget_obj,false,false,”,”,”);
myajax.SendGet2(“/plus/arcmulti.php?mtype=0&pnum=”+pagenum+’&tagid=’+tagid);
myajax = new DedeAjax(taget_obj_page,false,false,”,”,”);
myajax.SendGet2(“/plus/arcmulti.php?mtype=1&pnum=”+pagenum+’&tagid=’+tagid);
DedeXHTTP = null;
}
</script>
2,<UL>
{dede:arclist row=”100″ tagid=’lists’ order=’id desc’ pagesize=”18″ typeid=”132″ titlelen=”100″}
<LI><STRONG><A href=”[field:arcurl/]“ target=_blank tiltle=”[field:title/]“>[field:title/] </A></STRONG>
<P>[field:description function="cn_substr(@me,128)"/]… <A href=”[field:arcurl/]” target=_blank title=”[field:title/]“>[詳情]</A> </P></LI>
{/dede:arclist}
<div style=”clear:both”></div>
{dede:arcpagelist tagid=’lists’/}
</UL>
(需要注意的是tagid和{dede:arcpagelist tagid=’lists’/} 必須保持一致,可以隨意起名字,一個(gè)頁面中不要有重復(fù),row=”"的條數(shù)要寫多一點(diǎn)些少會(huì)顯示到那么多就不會(huì)在顯示了,不寫好像不管用吧)
日期:2018-10 瀏覽次數(shù):3750
日期:2018-10 瀏覽次數(shù):3498
日期:2018-08 瀏覽次數(shù):3582
日期:2018-06 瀏覽次數(shù):3334
日期:2018-06 瀏覽次數(shù):3182
日期:2018-06 瀏覽次數(shù):3234
日期:2018-06 瀏覽次數(shù):3495
日期:2018-06 瀏覽次數(shù):3337
日期:2018-06 瀏覽次數(shù):3257
日期:2018-06 瀏覽次數(shù):3432
日期:2018-05 瀏覽次數(shù):3340
日期:2018-05 瀏覽次數(shù):4149
日期:2018-05 瀏覽次數(shù):3253
日期:2018-05 瀏覽次數(shù):3666
日期:2018-04 瀏覽次數(shù):4118
日期:2018-03 瀏覽次數(shù):3258
日期:2018-03 瀏覽次數(shù):3134
日期:2018-03 瀏覽次數(shù):3321
日期:2018-02 瀏覽次數(shù):3314
日期:2018-02 瀏覽次數(shù):3282
日期:2017-12 瀏覽次數(shù):3424
日期:2017-12 瀏覽次數(shù):3656
日期:2017-12 瀏覽次數(shù):3842
日期:2017-12 瀏覽次數(shù):3216
日期:2017-12 瀏覽次數(shù):3202
日期:2017-11 瀏覽次數(shù):3240
日期:2017-11 瀏覽次數(shù):3312
日期:2017-11 瀏覽次數(shù):3210
日期:2017-11 瀏覽次數(shù):3338
日期:2017-11 瀏覽次數(shù):3906
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.