相思资源网 Design By www.200059.com
复制代码 代码如下:
<!--
//ASP分页函数
function ShowListPage(page,Pcount,TopicNum,maxperpage,strLink,ListName){
var alertcolor = '#FF0000';
maxperpage=Math.floor(maxperpage);
TopicNum=Math.floor(TopicNum);
page=Math.floor(page);
var n,p;
if ((page-1)%10==0) {
p=(page-1) /10
}else{
p=(((page-1)-(page-1)%10)/10)
}
if(TopicNum%maxperpage==0) {
n=TopicNum/maxperpage;
}else{
n=(TopicNum-TopicNum%maxperpage)/maxperpage+1;
}
document.write ('<table border="0" cellpadding="0" cellspacing="1" class="Tableborder5">');
document.write ('<form method=post action="?pcount='+Pcount+strLink+'">');
document.write ('<tr align="center">');
document.write ('<td class="tabletitle1" title="'+ListName+'"> '+ListName+' </td>');
document.write ('<td class="tabletitle1" title="总数"> '+TopicNum+' </td>');
document.write ('<td class="tabletitle1" title="每页"> '+maxperpage+' </td>');
document.write ('<td class="tabletitle1" title="页次"> '+page+'/'+Pcount+'页 </td>');
if (page==1){
document.write ('<td class="tablebody1"> <font face=webdings>9</font> </td>');
}else{
document.write ('<td class="tablebody1"> <a href="?page=1'+strLink+'" title="首页"><font face=webdings>9</font></a> </td>');
}
if (p*10 > 0){
document.write ('<td class="tablebody1"> <a href="?page='+p*10+strLink+'" title="上十页"><font face=webdings>7</font></a> </td>');
}
if (page < 2){
document.write ('<td class="tablebody1"> 首 页 </td>');
document.write ('<td class="tablebody1"> 上一页 </td>');
}else{
document.write ('<td class="tablebody1"> <a href="?page=1'+strLink+'" title="首页">首 页</a> </td>');
document.write ('<td class="tablebody1"> <a href="?page='+(page-1)+strLink+'" title="上一页">上一页</a> </td>');
}
if (Pcount-page < 1){
document.write ('<td class="tablebody1"> 下一页 </td>');
document.write ('<td class="tablebody1"> 尾 页 </td>');
}else{
document.write ('<td class="tablebody1"> <a href="?page='+(page+1)+strLink+'" title="下一页">下一页</a> </td>');
document.write ('<td class="tablebody1"> <a href="?page='+Pcount+strLink+'" title="尾页">尾 页</a> </td>');
}
for (var i=p*10+1;i<p*10+11;i++){
if (i==n) break;
}
if (i<n){
document.write ('<td class="tablebody1"> <a href="?page='+i+strLink+'" title="下十页"><font face=webdings>8</font></a> <td>');
}
if (page==n){
document.write ('<td class="tablebody1"> <Font face=webdings>:</font> </td>');
}else{
document.write ('<td class="tablebody1"> <a href="?page='+n+strLink+'" title="尾页"><font face=webdings>:</font></a> </td>');
}
document.write ('<td class="tablebody1"><input class="PageInput" type=text name="page" size=1 maxlength=10 value="'+page+'"></td>');
document.write ('<td class="tablebody1"><input type=submit value=Go name=submit class="PageInput"></td>');
document.write ('</tr>');
document.write ('</form></table>');
}
//HTML分页函数
function ShowHtmlPage(page,Pcount,TopicNum,maxperpage,strLink,ExtName,ListName){
var alertcolor = '#FF0000';
maxperpage=Math.floor(maxperpage);
TopicNum=Math.floor(TopicNum);
page=Math.floor(page);
var n,p;
if ((page-1)%10==0) {
p=(page-1) /10
}else{
p=(((page-1)-(page-1)%10)/10)
}
if(TopicNum%maxperpage==0) {
n=TopicNum/maxperpage;
}else{
n=(TopicNum-TopicNum%maxperpage)/maxperpage+1;
}
document.write ('<table border="0" cellpadding="0" cellspacing="1" class="Tableborder5">');
document.write ('<form method=post>');
document.write ('<tr align="center">');
document.write ('<td class="tabletitle1" title="'+ListName+'"> '+ListName+' </td>');
document.write ('<td class="tabletitle1" title="总数"> '+TopicNum+' </td>');
document.write ('<td class="tabletitle1" title="每页"> '+maxperpage+' </td>');
document.write ('<td class="tabletitle1" title="页次"> '+page+'/'+Pcount+'页 </td>');
if (page==1){
document.write ('<td class="tablebody1"> <font face=webdings>9</font> </td>');
}else{
document.write ('<td class="tablebody1"> <a href="index'+ExtName+'" title="首页"><font face=webdings>9</font></a> </td>');
}
if (p*10 > 0){
document.write ('<td class="tablebody1"> <a href="'+strLink+(p*10)+ExtName+'" title="上十页"><font face=webdings>7</font></a> </td>');
}
if (page < 3){
document.write ('<td class="tablebody1"> 首 页 </td>');
document.write ('<td class="tablebody1"> <a href="index'+ExtName+'" title="上一页">上一页1</a> </td>');
}else{
document.write ('<td class="tablebody1"> <a href="index'+ExtName+'" title="首页">首 页1/a> </td>');
document.write ('<td class="tablebody1"> <a href="'+strLink+(page-1)+ExtName+'" title="上一页">上一页</a> </td>');
}
if (Pcount-page < 1){
document.write ('<td class="tablebody1"> 下一页1 </td>');
document.write ('<td class="tablebody1"> 尾 页 </td>');
}else{
document.write ('<td class="tablebody1"> <a href="'+strLink+(page+1)+ExtName+'" title="下一页">下一页</a> </td>');
document.write ('<td class="tablebody1"> <a href="'+strLink+Pcount+ExtName+'" title="尾页">尾 页</a> </td>');
}
for (var i=p*10+1;i<p*10+11;i++){
if (i==n) break;
}
if (i<n){
document.write ('<td class="tablebody1"> <a href="'+strLink+i+ExtName+'" title="下十页"><font face=webdings>8</font></a> <td>');
}
if (page==n){
document.write ('<td class="tablebody1"> <Font face=webdings>:</font> </td>');
}else{
document.write ('<td class="tablebody1"> <a href="'+strLink+n+ExtName+'" title="尾页"><font face=webdings>:</font></a> </td>');
}
//document.write ('<td class="tabletitle1" title="转到"> GO </td>');
document.write ('<td class="tablebody1"><select class="PageInput" name="page" size="1" onchange="javascript:window.location=this.options[this.selectedIndex].value;">');
document.write ('<option value="index'+ExtName+'">第1页</option>');
for (var i=2;i<TopicNum;i++){
if (i==page){
document.write ('<option value="'+strLink+i+ExtName+'" selected>第'+i+'页</option>');
}else{
if (i==1){
document.write ('<option value="index'+ExtName+'">第1页</option>');
}else{
document.write ('<option value="'+strLink+i+ExtName+'">第'+i+'页</option>');
}
}
if (i==n) break;
}
document.write ('</select></td>');
document.write ('</tr>');
document.write ('</form></table>');
}
//-->
<!--
//ASP分页函数
function ShowListPage(page,Pcount,TopicNum,maxperpage,strLink,ListName){
var alertcolor = '#FF0000';
maxperpage=Math.floor(maxperpage);
TopicNum=Math.floor(TopicNum);
page=Math.floor(page);
var n,p;
if ((page-1)%10==0) {
p=(page-1) /10
}else{
p=(((page-1)-(page-1)%10)/10)
}
if(TopicNum%maxperpage==0) {
n=TopicNum/maxperpage;
}else{
n=(TopicNum-TopicNum%maxperpage)/maxperpage+1;
}
document.write ('<table border="0" cellpadding="0" cellspacing="1" class="Tableborder5">');
document.write ('<form method=post action="?pcount='+Pcount+strLink+'">');
document.write ('<tr align="center">');
document.write ('<td class="tabletitle1" title="'+ListName+'"> '+ListName+' </td>');
document.write ('<td class="tabletitle1" title="总数"> '+TopicNum+' </td>');
document.write ('<td class="tabletitle1" title="每页"> '+maxperpage+' </td>');
document.write ('<td class="tabletitle1" title="页次"> '+page+'/'+Pcount+'页 </td>');
if (page==1){
document.write ('<td class="tablebody1"> <font face=webdings>9</font> </td>');
}else{
document.write ('<td class="tablebody1"> <a href="?page=1'+strLink+'" title="首页"><font face=webdings>9</font></a> </td>');
}
if (p*10 > 0){
document.write ('<td class="tablebody1"> <a href="?page='+p*10+strLink+'" title="上十页"><font face=webdings>7</font></a> </td>');
}
if (page < 2){
document.write ('<td class="tablebody1"> 首 页 </td>');
document.write ('<td class="tablebody1"> 上一页 </td>');
}else{
document.write ('<td class="tablebody1"> <a href="?page=1'+strLink+'" title="首页">首 页</a> </td>');
document.write ('<td class="tablebody1"> <a href="?page='+(page-1)+strLink+'" title="上一页">上一页</a> </td>');
}
if (Pcount-page < 1){
document.write ('<td class="tablebody1"> 下一页 </td>');
document.write ('<td class="tablebody1"> 尾 页 </td>');
}else{
document.write ('<td class="tablebody1"> <a href="?page='+(page+1)+strLink+'" title="下一页">下一页</a> </td>');
document.write ('<td class="tablebody1"> <a href="?page='+Pcount+strLink+'" title="尾页">尾 页</a> </td>');
}
for (var i=p*10+1;i<p*10+11;i++){
if (i==n) break;
}
if (i<n){
document.write ('<td class="tablebody1"> <a href="?page='+i+strLink+'" title="下十页"><font face=webdings>8</font></a> <td>');
}
if (page==n){
document.write ('<td class="tablebody1"> <Font face=webdings>:</font> </td>');
}else{
document.write ('<td class="tablebody1"> <a href="?page='+n+strLink+'" title="尾页"><font face=webdings>:</font></a> </td>');
}
document.write ('<td class="tablebody1"><input class="PageInput" type=text name="page" size=1 maxlength=10 value="'+page+'"></td>');
document.write ('<td class="tablebody1"><input type=submit value=Go name=submit class="PageInput"></td>');
document.write ('</tr>');
document.write ('</form></table>');
}
//HTML分页函数
function ShowHtmlPage(page,Pcount,TopicNum,maxperpage,strLink,ExtName,ListName){
var alertcolor = '#FF0000';
maxperpage=Math.floor(maxperpage);
TopicNum=Math.floor(TopicNum);
page=Math.floor(page);
var n,p;
if ((page-1)%10==0) {
p=(page-1) /10
}else{
p=(((page-1)-(page-1)%10)/10)
}
if(TopicNum%maxperpage==0) {
n=TopicNum/maxperpage;
}else{
n=(TopicNum-TopicNum%maxperpage)/maxperpage+1;
}
document.write ('<table border="0" cellpadding="0" cellspacing="1" class="Tableborder5">');
document.write ('<form method=post>');
document.write ('<tr align="center">');
document.write ('<td class="tabletitle1" title="'+ListName+'"> '+ListName+' </td>');
document.write ('<td class="tabletitle1" title="总数"> '+TopicNum+' </td>');
document.write ('<td class="tabletitle1" title="每页"> '+maxperpage+' </td>');
document.write ('<td class="tabletitle1" title="页次"> '+page+'/'+Pcount+'页 </td>');
if (page==1){
document.write ('<td class="tablebody1"> <font face=webdings>9</font> </td>');
}else{
document.write ('<td class="tablebody1"> <a href="index'+ExtName+'" title="首页"><font face=webdings>9</font></a> </td>');
}
if (p*10 > 0){
document.write ('<td class="tablebody1"> <a href="'+strLink+(p*10)+ExtName+'" title="上十页"><font face=webdings>7</font></a> </td>');
}
if (page < 3){
document.write ('<td class="tablebody1"> 首 页 </td>');
document.write ('<td class="tablebody1"> <a href="index'+ExtName+'" title="上一页">上一页1</a> </td>');
}else{
document.write ('<td class="tablebody1"> <a href="index'+ExtName+'" title="首页">首 页1/a> </td>');
document.write ('<td class="tablebody1"> <a href="'+strLink+(page-1)+ExtName+'" title="上一页">上一页</a> </td>');
}
if (Pcount-page < 1){
document.write ('<td class="tablebody1"> 下一页1 </td>');
document.write ('<td class="tablebody1"> 尾 页 </td>');
}else{
document.write ('<td class="tablebody1"> <a href="'+strLink+(page+1)+ExtName+'" title="下一页">下一页</a> </td>');
document.write ('<td class="tablebody1"> <a href="'+strLink+Pcount+ExtName+'" title="尾页">尾 页</a> </td>');
}
for (var i=p*10+1;i<p*10+11;i++){
if (i==n) break;
}
if (i<n){
document.write ('<td class="tablebody1"> <a href="'+strLink+i+ExtName+'" title="下十页"><font face=webdings>8</font></a> <td>');
}
if (page==n){
document.write ('<td class="tablebody1"> <Font face=webdings>:</font> </td>');
}else{
document.write ('<td class="tablebody1"> <a href="'+strLink+n+ExtName+'" title="尾页"><font face=webdings>:</font></a> </td>');
}
//document.write ('<td class="tabletitle1" title="转到"> GO </td>');
document.write ('<td class="tablebody1"><select class="PageInput" name="page" size="1" onchange="javascript:window.location=this.options[this.selectedIndex].value;">');
document.write ('<option value="index'+ExtName+'">第1页</option>');
for (var i=2;i<TopicNum;i++){
if (i==page){
document.write ('<option value="'+strLink+i+ExtName+'" selected>第'+i+'页</option>');
}else{
if (i==1){
document.write ('<option value="index'+ExtName+'">第1页</option>');
}else{
document.write ('<option value="'+strLink+i+ExtName+'">第'+i+'页</option>');
}
}
if (i==n) break;
}
document.write ('</select></td>');
document.write ('</tr>');
document.write ('</form></table>');
}
//-->
标签:
ASP分页
相思资源网 Design By www.200059.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
相思资源网 Design By www.200059.com
暂无js实现ASP分页函数 HTML分页函数的评论...
P70系列延期,华为新旗舰将在下月发布
3月20日消息,近期博主@数码闲聊站 透露,原定三月份发布的华为新旗舰P70系列延期发布,预计4月份上市。
而博主@定焦数码 爆料,华为的P70系列在定位上已经超过了Mate60,成为了重要的旗舰系列之一。它肩负着重返影像领域顶尖的使命。那么这次P70会带来哪些令人惊艳的创新呢?
根据目前爆料的消息来看,华为P70系列将推出三个版本,其中P70和P70 Pro采用了三角形的摄像头模组设计,而P70 Art则采用了与上一代P60 Art相似的不规则形状设计。这样的外观是否好看见仁见智,但辨识度绝对拉满。