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

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

不懂這個(gè)js函數(shù)???誰幫我解釋一下,謝謝?。。?!

不懂這個(gè)js函數(shù)???誰幫我解釋一下,謝謝啊?。?!

慕粉3686312 2016-11-30 00:27:13
<!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"?/> <title>iPhone手機(jī)解鎖效果</title> <style?type="text/css"> #iphone{position:relative;width:426px;height:640px;margin:10px?auto;background:url(http://fgm.cc/iphone/1.jpg)?no-repeat;} #lock{position:absolute;left:50%;bottom:33px;width:358px;height:62px;margin-left:-179px;} #lock?span{position:absolute;width:93px;height:62px;cursor:pointer;background:url(http://fgm.cc/iphone/btn.jpg)?no-repeat;} </style> <script?type="text/javascript"> window.onload?=?function?() { ????var?iPhone?=?document.getElementById("iphone"); ????var?oLock?=?document.getElementById("lock"); ????var?oBtn?=?oLock.getElementsByTagName("span")[0]; ????var?disX?=?0; ????var?maxL?=?oLock.clientWidth?-?oBtn.offsetWidth; ????var?oBg?=?document.createElement("img"); ????oBg.src?=?"http://fgm.cc/iphone/2.jpg";//預(yù)加載下第二張背景,其它沒什么大用。 ????oBtn.onmousedown?=?function?(e) ????{ ????????var?e?=?e?||?window.event; ????????disX?=?e.clientX?-?this.offsetLeft; ???????? ????????document.onmousemove?=?function?(e) ????????{ ????????????var?e?=?e?||?window.event; ????????????var?l?=?e.clientX?-?disX; ???????????? ????????????l?<?0?&&?(l?=?0); ????????????l?>?maxL?&&?(l?=?maxL); ???????????? ????????????oBtn.style.left?=?l?+?"px"; ???????????? ????????????oBtn.offsetLeft?==?maxL?&&?(iPhone.style.background?=?"url("+?oBg.src?+")",?oLock.style.display?=?"none"); ????????????return?false; ????????}; ????????document.onmouseup?=?function?() ????????{ ????????????document.onmousemove?=?null; ????????????document.onmouseup?=?null; ????????????oBtn.releaseCapture?&&?oBtn.releaseCapture(); ???????????? ????????????oBtn.offsetLeft?>?maxL?/?2?? ????????????????startMove(maxL,?function?() ????????????????{ ????????????????????iPhone.style.background?=?"url("+?oBg.src?+")"; ????????????????????oLock.style.display?=?"none" ????????????????})?: ????????????????startMove(0) ????????}; ????????this.setCapture?&&?this.setCapture(); ????????return?false ????}; ????function?startMove?(iTarget,?onEnd) ????{ ????????clearInterval(oBtn.timer); ????????oBtn.timer?=?setInterval(function?() ????????{ ????????????doMove(iTarget,?onEnd) ????????},?30) ????} ????function?doMove?(iTarget,?onEnd) ????{ ????????var?iSpeed?=?(iTarget?-?oBtn.offsetLeft)?/?5; ????????iSpeed?=?iSpeed?>?0???Math.ceil(iSpeed)?:?Math.floor(iSpeed); ????????iTarget?==?oBtn.offsetLeft???(clearInterval(oBtn.timer),?onEnd?&&?onEnd())?:?oBtn.style.left?=?iSpeed?+?oBtn.offsetLeft?+?"px" ????} }; </script> </head> <body> <div?id="iphone"> ????<div?id="lock"><span></span></div> </div> </body> </html>?function?doMove?(iTarget,?onEnd)這個(gè)iTarget代表的么?。窟@個(gè)onEnd?&&?onEnd()上面這個(gè)代碼代表什么呢???請幫忙解答一下,謝謝!
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關(guān)注
  • 1256 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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