織夢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’/} 必須保持一致,可以隨意起名字,一個頁面中不要有重復(fù),row=”"的條數(shù)要寫多一點(diǎn)些少會顯示到那么多就不會在顯示了,不寫好像不管用吧)
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 織夢DedeCMS模板下載頁中實(shí)現(xiàn)arclist分頁效果