亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

小圓點問題

?var prev = document.getElementById('prev');

? ? ? ? ? ? var next = document.getElementById('next');

? ? ? ? ? ? var index = 1;

? ? ? ? ? ??

? ? ? ? ? ?function showButton() {

? ? ? ? ? ? ? ? for (var i = 0;i<buttons.length;i++){

? ? ? ? ? ? ? ? ? ? if (buttons[i].ClassName=='on') {

? ? ? ? ? ? ? ? ? ? ? ? buttons[i].ClassName=='';

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? buttons.[index - 1].ClassName='on';

? ? ? ? ? ? }


? ? ? ? ? ? function animate(offset){

? ? ? ? ? ? ? ? list.style.left = parseInt(list.style.left)+offset+'px';

? ? ? ? ? ? }


? ? ? ? ? ? next.onclick = function(){

? ? ? ? ? ? ? ? animate(-300);

? ? ? ? ? ? ? ? index =index+1;

? ? ? ? ? ? ? ? showButton();

? ? ? ? ? ? }

? ? ? ? ? ? ?prev.onclick = function(){

? ? ? ? ? ? ? ? animate(300);

? ? ? ? ? ? ? ? index =index-1;

? ? ? ? ? ? ? ? showButton();

? ? ? ? ? ? ? ?

? ? ? ? ? ? }

? ? ? ? ? ? ?

? ? ? ? }

為什么我這樣寫之后不能向左向右移動了,小圓點也不能亮起來

正在回答

2 回答

我只是將圖片的大小變為了300,其他幾乎沒變

0 回復 有任何疑惑可以回復我~

貼完整全部的,然后說明哪里有不同,或者完全沒有更改?

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

小圓點問題

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號