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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

為什么結(jié)果沒出來,都沒有反應(yīng)

<!DOCTYPE html>
<html>
<head>
?? ?<meta charset="UTF-8">
?? ?<title>JS動(dòng)畫2</title>
<style type="text/css">
*{margin: 0;
?padding: 0;
?}
#share{
?? ?width: 200px;
?? ?height: 200px;
?? ?background-color:#11FA45 ;
??? position: relative;
??? left: -200px;
}
#share span{
?? ?width: 60px;
?? ?height: 50px;
?? ?line-height: 50px;
?? ?background-color: #F36812;
?? ?position: absolute;
??? text-align: center;
??? top:100px;
??? right: -60px;
}
</style>
</head>
<body>
?? ?<div id="share">
??????? <span>分享</span>
??? </div>


<script type="text/javascript">
?? ?window.onload=function(){
?? ?var move=document.getElementById("share");
?? ?move.onmouseover=function(){
?? ??? ?startmove();
?? ?}
}
?var timer=null;
function startmove(){
?? ?clearInterval(timer);
?? ?var move=document.getElementById("share");
?? ?timer=setInterval(function(){
?? ??? ?if (move.offsetLeft>=0) {
?? ??? ? ?? ?clearInterval(timer);
?? ??? ? } else{
?? ??? ??? ?move.style.left=move.offsetLeft+10+'px';}
?? ??? ? },30)
?? ??? ?}
?? ??? ?
</body>
</script>
</html>

正在回答

4 回答

</body>
</script>這塊寫錯(cuò)了,應(yīng)該是

</script>

</body>

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

周木杉 提問者

改過來了還是沒有反應(yīng)
2015-12-16 回復(fù) 有任何疑惑可以回復(fù)我~
#2

周木杉 提問者

非常感謝!
2015-12-16 回復(fù) 有任何疑惑可以回復(fù)我~

將</body>和</script>兩個(gè)標(biāo)簽互換就可以了


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

<!DOCTYPE html>
<html>
<head>
??? <meta charset="UTF-8">
??? <title>JS動(dòng)畫2</title>
<style type="text/css">
*{margin: 0;
?padding: 0;
?}
#share{
??? width: 200px;
??? height: 200px;
??? background-color:#11FA45 ;
??? position: relative;
??? left: -200px;
}
#share span{
??? width: 60px;
??? height: 50px;
??? line-height: 50px;
??? background-color: #F36812;
??? position: absolute;
??? text-align: center;
??? top:100px;
??? right: -60px;
}
</style>
</head>
<body>
??? <div id="share">
??????? <span>分享</span>
??? </div>


<script type="text/javascript">
??? window.onload=function(){
??? var move=document.getElementById("share");
??? move.onmouseover=function(){
??????? startmove();
??? }
?? ?move.onmouseout=function(){
??????? startmout();
??? }
}
?var timer=null;
function startmove(){
??? clearInterval(timer);
??? var move=document.getElementById("share");
??? timer=setInterval(function(){
??????? if (move.offsetLeft>=0) {
???????????? clearInterval(timer);
???????? } else{
??????????? move.style.left=move.offsetLeft+10+'px';}
???????? },30)
??????? }
?</script>????? ?
</body>

</html>

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

你的body的問題,把結(jié)束標(biāo)簽提出去

<body>
<div?id="share">
???<span>分享</span>
</div>

</body>

<script?type="text/javascript">
???window.onload=function(){
??????var?move=document.getElementById("share");
??????move.onmouseover=function(){
?????????startmove();
??????}
???}
???var?timer=null;
???function?startmove(){
??????clearInterval(timer);
??????var?move=document.getElementById("share");
??????timer=setInterval(function(){
?????????if?(move.offsetLeft>=0)?{
????????????clearInterval(timer);
?????????}?else{
????????????move.style.left=move.offsetLeft+10+'px';}
??????},30)
???}
</script>


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

舉報(bào)

0/150
提交
取消
JS動(dòng)畫效果
  • 參與學(xué)習(xí)       113920    人
  • 解答問題       1487    個(gè)

通過本課程JS動(dòng)畫的學(xué)習(xí),從簡(jiǎn)單動(dòng)畫開始,逐步深入各種動(dòng)畫框架封裝

進(jìn)入課程

為什么結(jié)果沒出來,都沒有反應(yīng)

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

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

幫助反饋 APP下載

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

公眾號(hào)

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