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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

為什么這個(gè)動(dòng)畫動(dòng)不了,哪里出錯(cuò)了?(鼠標(biāo)經(jīng)過動(dòng)畫)

為什么這個(gè)動(dòng)畫動(dòng)不了,哪里出錯(cuò)了?(鼠標(biāo)經(jīng)過動(dòng)畫)

<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html?xmlns="http://www.w3.org/1999/xhtml"> <head> <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> <style> #div1{ width:300px; height:300px; position:absolute; left:-200px; background:red;} </style> <script> window.onload?=?function(){ var?odiv?=?document.getElementById('div1'); odiv.onmouseover?=?function(){ move(0); } odiv.onmouseout?=?function(){ move(-200); } } var?timer?=?null; function?move(itarget){ clearInterval(timer); var?odiv?=?document.getElementById('div1'); timer?=?setInterval(function(){ var?speed?=?0; if(oidv.offsetLeft>itarget) { speed?=?-10; } else { speed?=?10; } if(odiv.offsetLeft==itarget) { clearInterval(timer); }? else { odiv.style.left?=?odiv.offsetLeft+speed+'px'; } },30) } </script> <title>無標(biāo)題文檔</title> </head> <body> <div?id="div1"></div> </body> </html>
查看完整描述

2 回答

已采納
?
MarlboroKay

TA貢獻(xiàn)189條經(jīng)驗(yàn) 獲得超236個(gè)贊

親,我也是把你的代碼編譯了一下才發(fā)現(xiàn),

?if(oidv.offsetLeft>itarget)

oidv 寫錯(cuò)了,應(yīng)該是odiv

望采納,謝謝

查看完整回答
3 反對(duì) 回復(fù) 2016-09-12
  • 2 回答
  • 0 關(guān)注
  • 1401 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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