原文来自:https://www.zixuephp.com
你的第5个栏目模版顶部调用dedeajax2.js 在head部分加上 <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("{dede:global.cfg_basehost/}{dede:global.cfg_phpurl/}/arcmulti.php?mtype=0&pnum="+pagenum+'&tagid='+tagid); myajax = new DedeAjax(taget_obj_page,false,false,'','',''); myajax.SendGet2("{dede:global.cfg_basehost/}{dede:global.cfg_phpurl/}/arcmulti.php?mtype=1&pnum="+pagenum+'&tagid='+tagid); DedeXHTTP = null; } --> </script> 栏目5分页列表标签: {dede:arclist typeid='1,2,3,4' row='100' titlelen='50' infolen='100' imgwidth='120' imgheight='40' listtype='all' orderby='pubdate' keyword='' channelid='1' tagid='dedecms' pagesize='20'} [field:title/] 分页标签加上{dede:arcpagelist tagid='dedecms'/} 调用其他栏目文章列表 用arclist 标签 一个演示标签: {dede:arclist row=10 titlelen=50 typeid='1,3,4,5,6,7,8,9' noflag=h} //表示调用10条 标题长度为50 频道id为13456789 非头条的信息 <div class="indexbox"> [field:array runphp='yes']@me = (strpos(@me['litpic'],'defaultpic') ? "" : "<a style='float:left' href='{@me['arcurl']}'><img alt='{@me['title']}' src='{@me['litpic']}' height=70 /></a>"); [/field:array] //表示 有图片则调用缩略图 没有则不显示 <h2><a href="[field:arcurl/]">[field:title/]</a> [field:senddate runphp='yes'] $ntime = time(); $oneday = 3600 * 24; if(($ntime - @me)<$oneday) @me = "<span style='color:red;font-size:12px;'>new !</span>"; else @me = ""; [/field:senddate] //24小时内发布的文章加NEW!字样 </h2> {/dede:arclist} CSS样式自己去写。