www.jgsdaily.com/system/2014/01/13/012902573.shtml" target="_blank" >以赏雪的名义相约井冈山·2013年6月6日晨报拍客
Copyright © 2003-2016 jgsdaily.com All Rights Reserved 赣ICP备09001622号
中国吉安网版权所有 邮箱:zgja2004@163.com 广告热线:(0796)8259287
未经中国吉安网书面特别授权,请勿转载或建立镜像 ,违者中国吉安网将依法追究相关法律责任
var baseurl = "http://www.jgsdaily.com/system/count/"; var maxpage = 50; var schannelId= "0101002003000000000"; var firsturl = "http://www.jgsdaily.com/photos/socialimages/index.html"; maxpage = maxpage+1; schannelId = "0000000000000000000"+ schannelId ; schannelId = schannelId.substring(schannelId.length-19); window.onload = function(){ if(maxpage*1>1){ var pagehtmlcontent ="
"; pagehtmlcontent +=""; pagehtmlcontent +=""; pagehtmlcontent +=""; pagehtmlcontent +=" "; pagehtmlcontent +="第/页 到第  页 "; pagehtmlcontent +="确定"; pagehtmlcontent +=""; document.getElementById("pagetemple").innerHTML=pagehtmlcontent; var currenturl = window.location.href; var allurl = currenturl .match("([0-9]+)_([0-9]+)"); if(allurl==null||allurl=="null"){ // maxpage = document.getElementById("maxpage").value; //当前页数 document .getElementById("currentpage").value=maxpage ; //第一页时隐藏上一页 document .getElementById("uppage").style.display="none"; }else{ var chanelandpage = allurl[0].split("_"); var currentpage = chanelandpage[1]; //schannelId = chanelandpage[0]; //尾页时隐藏下一页 if(currentpage*1 == 1){ document .getElementById("downpage").style.display="none"; } //当前页数 document.getElementById("currentpage").value=chanelandpage[1]*1; } document.getElementById("currentid").innerHTML=maxpage*1-document.getElementById("currentpage").value*1+1; document.getElementById("allid").innerHTML=maxpage; } }; function nextpage(value){ //上一页 var pagenum = document.getElementById("currentpage").value; if(value == 1){ //那最后一段 var uppagelast= pagenum ; uppagelast = uppagelast*1+1; if(uppagelast==maxpage){ window.location.href=firsturl; }else{ uppagelast= "000000000"+ uppagelast; uppagelast= uppagelast.substring(uppagelast.length-9); baseurl= baseurl+"/"+schannelId.substring(0,7)+"/"+schannelId.substring(7,19)+"/"+uppagelast.substring(0,3)+"/"+uppagelast.substring(3,6)+"/c"+schannelId+"_"+uppagelast+".shtml"; window.location.href=baseurl; } }else { var uppagelast= pagenum ; uppagelast = uppagelast*1-1; uppagelast= "000000000"+ uppagelast; uppagelast= uppagelast.substring(uppagelast.length-9); baseurl= baseurl+"/"+schannelId.substring(0,7)+"/"+schannelId.substring(7,19)+"/"+uppagelast.substring(0,3)+"/"+uppagelast.substring(3,6)+"/c"+schannelId+"_"+uppagelast+".shtml"; window.location.href=baseurl; } } function changepage(){ var jumpnum = document .getElementById("jumppageId").value; var downpagelase = maxpage; var downpagelasecenter = maxpage ; var r = /^\+?[1-9][0-9]*$/; if(!r.test(jumpnum)){ alert("跳转页数必须为正整数"); return; }else if(jumpnum.trim()==""||jumpnum.trim()<=0||(jumpnum.trim()*1-1)>=(downpagelase*1)){ alert("输入的页数必须大于0小于最大页数"); return; }else if(jumpnum.trim() == 1){ window.location.href=firsturl; }else{ downpagelase = downpagelase*1-jumpnum.trim()+1; downpagelase = "000000000"+ downpagelase ; downpagelase = downpagelase .substring(downpagelase.length-9); baseurl= baseurl+"/"+schannelId.substring(0,7)+"/"+schannelId.substring(7,19)+"/"+downpagelase.substring(0,3)+"/"+downpagelase.substring(3,6)+"/c"+schannelId+"_"+downpagelase+".shtml"; window.location.href=baseurl; } }