社区
JavaScript
帖子详情
200 分悬赏
platinum
2002-07-03 07:57:16
像了解问题的请看如下这个连接
http://www.arkbook.com/icon/
问题为
http://www.arkbook.com/temp/wenti.gif
请问如果想实现这个功能那么 http://www.arkbook.com/icon/list.html 这页应该如何改
问题只给第一个完美解决的人
...全文
74
4
打赏
收藏
200 分悬赏
像了解问题的请看如下这个连接 http://www.arkbook.com/icon/ 问题为 http://www.arkbook.com/temp/wenti.gif 请问如果想实现这个功能那么 http://www.arkbook.com/icon/list.html 这页应该如何改 问题只给第一个完美解决的人
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
lanbor
2002-07-03
打赏
举报
回复
哦.随便检查了一下.有些错误(可能还有,可是网吧的条件实在太差,连我的电脑都不能用:(.
if( currP > indexArray.length) alert('对不起已经是最后一页了. ');
if( currP <0 ) alert('对不起已经是最前一页了. ');
后加上 return; 退出.
lanbor
2002-07-03
打赏
举报
回复
indexArray = new Array();
indexAaray[0]="aa";
indexArray[indexArray.length] = "ab";
indexArray[indexArray.length] = "ab";
indexArray[indexArray.length] = "ac";
indexArray[indexArray.length] = "ad";
:
:
indexArray[indexArray.length] = "za";
indexArray[indexArray.length] = "zb";
indexArray[indexArray.length] = "zc";
currP = 0;
currIndex = "aa";
goNext()
{
currP ++;
if( currP > indexArray.length) alert('对不起已经是最后一页了. ');
currIndex = indexArray[currP];
for(var i=0;i< listnow.options.length;i++){
if (listnow.options[i].value == currIndex ) {
listnow.options[i].selected=true
break;
}
}
}
goPre()
{
currP --;
if( currP <0 ) alert('对不起已经是最前一页了. ');
currIndex = indexArray[currP];
for(var i=0;i< listnow.options.length;i++){
if (listnow.options[i].value == currIndex ) {
listnow.options[i].selected=true
break;
}
}
}
<button onclick="goNext()">下一页</button>
<button onclick="goPre()">前一页</button>
我在网吧.不能调试代码.但大概意思就是这样...
skyover
2002-07-03
打赏
举报
回复
应该是这个。
<script>
<!--
function addOption() {
for(var i=000;i<100;i++) {
var sName = "馒头" + i;
var sValue = i;
var oOption = document.createElement('OPTION');
oOption.text = sName;
oOption.value = sValue;
document.form1.select1.options.add(oOption);
}
}
function prev() {
document.form1.select1.selectedIndex = document.form1.select1.selectedIndex - 1;
}
function next() {
document.form1.select1.selectedIndex = parseInt(document.form1.select1.selectedIndex) + 1;
}
//-->
</script>
<body onload="addOption()">
<form id="form1" name="form1" onsubmit="form_submit(this);">
<select id="select1" name="select1"></select>
<button onclick="prev()">上一页</button>
<button onclick="next()">下一页</button>
</form>
</body>
skyover
2002-07-03
打赏
举报
回复
<script>
<!--
function addOption() {
for(var i=0;i<100;i++) {
var sName = "馒头" + i;
var sValue = i;
var oOption = document.createElement('OPTION');
oOption.text = sName;
oOption.value = sValue;
document.form1.select1.options.add(oOption);
}
}
function prev() {
document.form1.select1.selectedIndex = document.form1.select1.value - 1;
}
function next() {
document.form1.select1.selectedIndex = parseInt(document.form1.select1.value) + 1;
}
//-->
</script>
<body onload="addOption()">
<form id="form1" name="form1" onsubmit="form_submit(this);">
<select id="select1" name="select1"></select>
<button onclick="prev()">上一页</button>
<button onclick="next()">下一页</button>
</form>
</body>
JAVA打造的国际任务
悬赏
系统:让接单与
悬赏
无缝对接
JAVA开发的全球化任务
悬赏
平台采用SpringBoot+微服务架构,支撑10,000+并发请求,结合Uni-app实现多端同步。功能涵盖智能任务匹配、多级
分
佣裂变、多币种支付及资金托管,集成12种语言和时区适配,支持家政、电商等本地化场景。通过AI推荐提升40%接单率,社交裂变转化超25%,某案例实现日订单12万。平台符合GDPR标准,采用金融级加密与全球CDN加速,端到端延迟≤80ms,构建了安全高效的跨国任务生态。
360
悬赏
200
万邀请黑客来“找茬”
2月23日,360SRC(安全应急响应中心)在三周年庆典活动上宣布,今年将投入超过
200
万奖金
悬赏
白帽黑客为360产品找漏洞,奖金数额相比去年提升一倍。针对360旗下的手机、路由器、智能摄像机、儿童手表等智能硬件产品,360特别推出一项“IOT安全守护计划”,把最新款产品免费提供给知名黑客团队和安全专家进行测试,如果发现严重漏洞将获得最高36万元的重金奖励。 “排斥和掩盖安全问题,只会...
Python爬虫|采集开源众包的
悬赏
任务,自动翻页
现在互联网,有很多网站提供一些接单外派的形式,提供给有能力的人或者团队去接单。比如说,很多人熟悉的猪八戒,程序员客栈,CODING 码市,开源众包等等平台,相信很多同学也都知道。如果要第一时间了解某个接单平台发布的第一手
悬赏
任务
JavaScript
87,989
社区成员
224,684
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章