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

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

為什么運行不了

//問什么運行不了

<!doctype html>

<html>

<head>

<meta charset="UTF-8">

<title>Untitled Document</title>

<style>

*{margin:0;padding:0}

#odiv{

width:200px;

height:200px;

left:0;

top:0;

position:relative;

opacity:0.1;

background:red;

filter:alpha(opacity:30);

opacity:0.3;

}

</style>

<script>

window.onload=function(){

var odiv=document.getElementById('odiv');

odiv.onmouseover=function(){

change(100);

}

odiv.onmouseout=function(){

change(10);

}

}   ?

var timer=null;

var alph=30;

function change(target){

var odiv=document.getElementById('odiv');

clearInterval(timer);

var speed=10;

? ? ? ? timer=setInterval(funcition(){

if(alph>target){

speed=-10;

}else{

speed=10;

}

if(alph==target){

clearInterval(timer);

}

else{

alph=alph+speed;

odiv.style.filter='alpha(opacity:'+alph+')';

odiv.style.opacity=alph/100;

}

},50);

}

</script>

</head>

<body>

<div id="odiv"></div>

</body>

</html>


正在回答

1 回答

你的timer = setInterval里面的單詞 function 打錯了

朋友 敲代碼的時候 注意啊?。?br />

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

漩渦鳴人007 提問者

已經(jīng)找到了,依然感謝
2016-03-29 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

為什么運行不了

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

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

幫助反饋 APP下載

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

公眾號

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