var titles = new Array(); var links = new Array(); var DocIDs=new Array(); //标题字数 var length=35; titles[0]="云南中医学院档案全宗介绍"; links[0]="/dagl/ksjs/41343.shtml"; DocIDs[0]="41343"; 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)+""; } } }