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

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

我的為什么不能實(shí)現(xiàn)鏈?zhǔn)竭\(yùn)動(dòng)..找半天bug了

我的為什么不能實(shí)現(xiàn)鏈?zhǔn)竭\(yùn)動(dòng)..找半天bug了

朕的江山啊 2017-03-27 15:32:56
<!DOCTYPE html><html>?? ?<head>?? ??? ?<meta charset="UTF-8">?? ??? ?<title></title>?? ??? ?<style type="text/css">?? ??? ??? ?div{?? ??? ??? ??? ?width:100px;?? ??? ??? ??? ?height:50px;?? ??? ??? ??? ?background:yellow;?? ??? ??? ??? ?margin:20px;?? ??? ??? ??? ?margin-bottom:none;?? ??? ??? ?}?? ??? ?</style>?? ?</head>?? ?<script type="text/javascript">?? ??? ?window.onload = function(){?? ??? ??? ?var list=document.getElementsByTagName("div");?? ??? ??? ?for(var i=0 ; i<list.length ; i++){?? ??? ??? ??? ?list[i].tim=null;?? ??? ??? ??? ?list[i].onmouseover=function(){?? ??? ??? ??? ??? ?var g=this;?? ??? ??? ??? ??? ?change(this,"width",200,function(){?? ??? ??? ??? ??? ??? ?change(g,"height",100);?? ??? ??? ??? ??? ?});?? ??? ??? ??? ?}?? ??? ??? ??? ?list[i].onmouseout=function(){?? ??? ??? ??? ??? ?change(this,"width",100);?? ??? ??? ??? ?}?? ??? ??? ?}?? ??? ?}?? ??? ??? ??? ?function getAttr(obj,att){?? ??? ??? ?if(obj.currentStyle){?? ??? ??? ??? ?return obj.currentStyle[att];?? ??? ??? ?}else{?? ??? ??? ??? ?return getComputedStyle(obj,false)[att];?? ??? ??? ?}?? ??? ?}?? ??? ??? ??? ?function change(obj,att,iTarget,fn){?? ??? ??? ?var speed=null;?? ??? ??? ?clearInterval(obj.tim);?? ??? ??? ?obj.tim=setInterval(function(){?? ??? ??? ??? ?var geta=parseInt(getAttr(obj,att))?? ??? ??? ??? ?speed=(iTarget-geta)/20;?? ??? ??? ??? ?speed=speed>0?Math.ceil(speed):Math.floor(speed);?? ??? ??? ??? ?if(geta==iTarget){?? ??? ??? ??? ??? ?if(fn){?? ??? ??? ??? ??? ??? ?fn();?? ??? ??? ??? ??? ?}?? ??? ??? ??? ??? ?clearInterval(obj.tim);?? ??? ??? ??? ?}else{?? ??? ??? ??? ??? ?obj.style[att]=geta+speed+"px";?? ??? ??? ??? ?}?? ??? ??? ?},30)?? ??? ?}?? ?</script>?? ?<body>?? ??? ?<div id="d1">?? ??? ?</div>?? ??? ?<div id="">?? ??? ?</div>?? ??? ?<div id="">?? ??? ?</div>?? ?</body></html>
查看完整描述

1 回答

?
田心楓

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

你在這個(gè)要的什么效果 ?我看代碼沒(méi)問(wèn)題啊

查看完整回答
反對(duì) 回復(fù) 2017-03-27
  • 1 回答
  • 0 關(guān)注
  • 927 瀏覽
慕課專欄
更多

添加回答

舉報(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)