HTML 动态分页

hu62915627 hu62915627 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
function InitPages(strValue) {
var selectContent="";
var j= 0;
var str="";
var iCount=5;
if (count <= 5){iCount = count;}
for(var i= 0; i< iCount; i++ ){
j++;
str= j;
if (j == iCount -1){selectContent += "<input style='width:25px; background-color:#f5f5f5; border:solid 1px #cfcfcf; font-family:'微软雅黑'; font-size:12px; color:#999; text-decoration:none; line-height:24px;' type=Lable id = "+str+" value = '....' ; > ";}else{
selectContent += "<input style='height:30px;width:25px; background-color:#f5f5f5; border:solid 1px #cfcfcf; font-family:'微软雅黑'; font-size:12px; color:#999; text-decoration:none; line-height:24px;' type=button id = "+str+" value = "+str+" onClick='thisPage("+str+","+strValue+")'; > ";}
}
return selectContent;
}

//页的跳转
function thisPage(k,strValue){
currentPage=k;

if(strValue){
if(k==1){index=0; }
else{index=index+1; }
getContent(true);
InitPages(true);}else{
getContent(false);
InitPages(false);}
}

如何实习下面的效果
...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
hu62915627
.NET社区 62,274 成员 668,968 内容