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

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

我照著這個方法打完后,我鼠標(biāo)放到內(nèi)容部分反而會加快自動播放為什么,內(nèi)容如下。


<script type="text/javascript">

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 timer;


function showButton(){

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){

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

var time=300;

var interval=15;

var speed=offset/(time/interval);





function go(){

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

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


setTimeout(go,interval);

}

? ? ? ? ? ? ? ?else{

? ? ? ? ? ? ? ? ? ? list.style.left=newLeft+'px';

if(newLeft> -1000){

? ? ? ? ? ? ? ? list.style.left = -5000 + 'px';

}

? ? ? ? ? ? ? ? if(newLeft< -5000){

? ? ? ? ? ? ? ? list.style.left = -1000 + 'px';

}

? ? ? ? ? ? ? ?}

? ? ? ? ? ?}

? ? ? ? ? ? ? ?go();


}


? ? next.onclick=function (){

? ? ? ? ? ?if(index==5){

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

}

? ? ? ? ? ?else{

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

}


? ? showButton();

animate(-1000);

}

? ? prev.onclick=function (){

? ? ? ? if(index==1){

? ? ? ? ? ? index=5;

}

? ? ? ? ? ?else{

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

}


? ? ? ? ? ?showButton();

animate(1000);

}


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

buttons[i].onclick=function (){

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

? ? ? ? ? ? ? ? return;

}


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

var offset=-1000 *(myIndex -index);

animate(offset);

index=myIndex;

showButton();

}

? ? ? ? }

function play() {

timer = setInterval(function(){

next.onclick();

},3000);

}


function clear() {

clearInerval(timer);

}? ? ? ?

? ? ? ? ontainer.onmouseover = clear;

? ? ? ? container.onmouseout = play;


? ? ? ? play();

? ? }

</script>


正在回答

1 回答

底下圖片指出錯誤的部分;

https://img1.sycdn.imooc.com//5c355bc000016f2b07550341.jpg

https://img1.sycdn.imooc.com//5c355bd40001743d08550576.jpg

https://img1.sycdn.imooc.com//5c355bd40001c68907020319.jpg

https://img1.sycdn.imooc.com//5c355bd40001acc605780292.jpg


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

舉報

0/150
提交
取消

我照著這個方法打完后,我鼠標(biāo)放到內(nèi)容部分反而會加快自動播放為什么,內(nèi)容如下。

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

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

幫助反饋 APP下載

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

公眾號

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