第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

輪番圖出現(xiàn)的問(wèn)題

為什么代碼和老師敲的一點(diǎn)擊箭頭圖片老是第一張

正在回答

2 回答

如果錯(cuò)誤都找出來(lái),證明你學(xué)會(huì)了,其它可以從別人的代碼中找錯(cuò)誤也是一種學(xué)習(xí)方法。

iyffvpigriqbarlqakdewmxfiymxiwovdtwwubmgynjjpcqwdiicbqsfsqlzsbrlezzxcfwaoebfylafeidsphyvolkchkdyjresyuhvsbkhvsuzffyxgmlxzxhli

0 回復(fù) 有任何疑惑可以回復(fù)我~

window.onload=function ?() {

var container =document.getElementById("container");

var list=document.getElementById("list");

var buttons=document.getElementById("buttons").getElementsByTagName("span");

var prev=document.getElementById("prev");

var next=document.getElementById("next");

var index=1;

var animated =false;


function showb() {

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

if (buttons[i].className=="on"){

buttons[i].className="";

break;

}

}

buttons[index -1].className ="on";

}


function animate(offset) {

animated=true;

var news=parseInt(list.style.left)+offset;

var time=300; ? //總時(shí)間

var interval =10; //間隔時(shí)間

var speed=offset/(time/interval);


function go() {

if ((speed < 0 && parseInt(list.style.left)>news) || ?(speed>0 && parseInt(list.style.left)<news)) {

list.style.left=parseInt(list.style.left)+speed+"px";

setTimeout(go,interval);

// statement

}

else{

animated=false;

list.style.left =news+"px";

if (news>-600) {

list.style.left=-3000+"px";

}

if (news<-3000 ){

list.style.left=-600+"px";

}

}

}

go();

}

next.onclick=function () {

if (index==5) {

index=1;

}

else {

index+=1;

}

showb();

if (!animated) {

animate(-600);

}

}

prev.onclick=function () {

if (index==1) {

index=5;

}

else {

index-=1;

}

showb();

if (!animated) {

animate(600);

}

}

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

? ? ? ? ? ? ? ? buttons[i].onclick = function () {

? ? ? ? ? ? ? ? ? ? if (animate) {

? ? ? ? ? ? ? ? ? ? ? ? return;

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? if(this.className == 'on') {

? ? ? ? ? ? ? ? ? ? ? ? return;

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? var myIndex = parseInt(this.getAttribute('index'));

? ? ? ? ? ? ? ? ? ? var offset = -600 * (myIndex - index);

? ? ? ? ? ? ? ? ? ? showb();

? ? ? ? ? ? ? ? ? ? if (!animated) {

? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? ? ??

? ? ? ? ? ? ? ? ? ? animate(offset);

? ? ? ? ? ? ? ? ? ? index = myIndex;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? }


}

}


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
焦點(diǎn)圖輪播特效
  • 參與學(xué)習(xí)       65327    人
  • 解答問(wèn)題       634    個(gè)

通過(guò)本教程學(xué)習(xí)您將能掌握非常實(shí)用的焦點(diǎn)圖輪播特效的制作過(guò)程

進(jìn)入課程

輪番圖出現(xiàn)的問(wèn)題

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)