var titles = new Array(); var links = new Array(); var DocIDs=new Array(); //标题字数 var length=35; titles[0]="院长办公室职能职责"; links[0]="/gywm/znzz/8708.shtml"; DocIDs[0]="8708"; 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)+""; } } }