织梦DedeCMS模板页中实现arclist分页效果
1,头部必须引进 dede模板页中实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’/} 必须保持一致,可以随意起名字,一个页面中不要有重复,row=”"的条数要写多一点些少会显示到那么多就不会在显示了,不写好像不管用吧)
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: 织梦DedeCMS模板下载页中实现arclist分页效果