社区
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 这页应该如何改
问题只给第一个完美解决的人
...全文
73
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打造的国际任务
悬赏
接单平台。该平台技术架构强大,有后端性能引擎、跨端开发方案等;功能设计完善,涵盖智能任务匹配、裂变增长等;具备全球化能力,支持多语言多时区,适配多行业,保障跨境合规与数据安全,实现接单与
悬赏
无缝对接。
360
悬赏
200
万邀请黑客来“找茬”
360SRC宣布将投入超
200
万奖金
悬赏
白帽黑客为360产品找漏洞,并推出“IOT安全守护计划”。针对旗下智能硬件产品,如手机、路由器等,提供给安全专家进行测试,发现严重漏洞者可获得高达36万元的奖励。
Python爬虫|采集开源众包的
悬赏
任务,自动翻页
本文通过Python爬虫演示如何从开源众包平台获取最新的
悬赏
任务,
分
析请求参数规律,实现自动翻页功能。主要涉及网络抓包、GET请求和时间戳处理。
JavaScript
87,989
社区成员
224,684
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章