var titles = new Array(); var links = new Array(); var DocIDs=new Array(); //标题字数 var length=35; titles[0]="十项校园节能项目"; links[0]="/jnjp/13411.shtml"; DocIDs[0]="13411"; titles[1]="高等学校校园设施节能运行管理办法"; links[1]="/jnjp/13409.shtml"; DocIDs[1]="13409"; titles[2]="校园节能减排方案"; links[2]="/jnjp/13408.shtml"; DocIDs[2]="13408"; for(var i=0;i"+titles[i+1].substring(0,length)+""; } //上一页 if(document.getElementById("prevpage") && i!=0){ document.getElementById("prevpage").innerHTML="上一篇:"+titles[i-1].substring(0,length)+""; } } }