<script language="JavaScript" type="text/javascript"> |
|
|
| var currentPage = 0 |
| var prevPage = currentPage-1 |
| var nextPage = currentPage+1 |
| var countPage = 4 |
| |
| |
| if(countPage>1&¤tPage!=0&¤tPage!=1) |
| document.write("<a href=\"t20160904_8622865.htm\" target='_self'>首页</a> | <a href=\"t20160904_8622865"+"_" + prevPage + "."+"htm\" target='_self'>上一页</a> "); |
| else if(countPage>1&¤tPage!=0&¤tPage==1) |
| |
| document.write("<a href=\"t20160904_8622865.htm\" target='_self'>首页</a> | <a href=\"t20160904_8622865.htm\" target='_self'>上一页</a> "); |
| else |
| document.write("首页 | 上一页 "); |
| var num = 5; |
| var temp = (num -1) * parseInt(currentPage/((num - 1))) |
| |
| |
| |
| if(countPage <= num) |
| { |
| for(var j = 0; j < countPage ; j++) |
| { |
| if(currentPage==j) |
| document.write("<font color='red' class='page_current'>"+(j+1)+"</font> "); |
| else if(j==0){ |
| document.write("<a target='_self' href=\"t20160904_8622865.htm\" class=\"page_sytle\">"+1+"</a> "); |
| }else |
| document.write("<a target='_self' href=\"t20160904_8622865"+"_" + j + "."+"htm\" class=\"page_sytle\">"+(j+1)+"</a> "); |
| } |
| } |
| else |
| { |
| |
| if(currentPage % (num - 1) == 0) |
| { |
| var start_num; |
| var end_num; |
| |
| if(currentPage + num -1 > countPage - 1) |
| { |
| |
| start_num = countPage - num; |
| end_num = countPage; |
| } |
| else |
| { |
| start_num = currentPage; |
| end_num = num +temp |
| } |
| |
| for(var i = start_num; i < end_num; i++) |
| { |
| if(currentPage==i) |
| document.write("<font color='red' class='page_current'>"+(i+1)+"</font> "); |
| else if(i==0){ |
| document.write("<a target='_self' href=\"t20160904_8622865.htm\" class=\"page_sytle\">"+1+"</a> "); |
| }else |
| document.write("<a target='_self' href=\"t20160904_8622865"+"_" + i + "."+"htm\" class=\"page_sytle\">"+(i+1)+"</a> "); |
| } |
|
|
| } |
| else |
| { |
| if(temp + num> countPage) |
| { |
| temp = countPage - num; |
| } |
| for(var i = temp ; i < num + temp; i++) |
| { |
| if(currentPage==i) |
| document.write("<font color='red' class='page_current'>"+(i+1)+"</font> "); |
| else if(i==0){ |
| document.write("<a target='_self' href=\"t20160904_8622865.htm\" class=\"page_sytle\">"+1+"</a> "); |
| }else |
| document.write("<a target='_self' href=\"t20160904_8622865"+"_" + i + "."+"htm\" class=\"page_sytle\">"+(i+1)+"</a> "); |
| } |
| |
| } |
| } |
| |
| if(countPage>1&¤tPage!=(countPage-1)) |
| document.write("<a target='_self' href=\"t20160904_8622865"+"_" + nextPage + "."+"htm\">下一页</a> | <a target='_self' href=\"t20160904_8622865_" + (countPage-1) + ".htm\">尾页</a> "); |
| else |
| document.write("下一页 | 尾页 "); |
| </script> |