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

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

鼠標(biāo)滑過怎么沒有反應(yīng)呢?

<script type="text/javascript">

function $(id){

return typeof id==="string"?document.getElementById(id):id;

}

window.onload=function(){

//標(biāo)簽的索引

var index=0;

var timer=null;

var lis=$("notice-tit").getElementsByTagName("li");

var divs=$("notice-con").getElementsByTagName("div");

if(lis.length!=divs.length) return;

//遍歷所有的頁簽

lis[i].id=i;

lis[i].onmousemove=function(){

//用that這個(gè)變量引用當(dāng)前滑過的li

var that=this;

//如果存在準(zhǔn)備執(zhí)行的定時(shí)器,立刻清除,只有當(dāng)停留時(shí)間大于500ms時(shí)才開始執(zhí)行

if(timer){

clearTimeout(timer);

? ?timer=null;

}

//延遲半秒執(zhí)行

timer=setTimeout(function() {

for (var j=0;j<lis.length;j++){

lis[j].className="";

divs[j].style.display="none";

}

lis[that.id].className="select";

divs[that.id].style.display="block";

}, 500);


}

}

</script>


正在回答

1 回答


<script>

? ? function $(id) {

? ? ? ? return typeof id === "string" ? document.getElementById(id) : id;

? ? }

? ? window.onload = function() {

? ? ? ? //標(biāo)簽的索引

? ? ? ? var timer = null;

? ? ? ? var lis = $("notice-tit").getElementsByTagName("li");

? ? ? ? var divs = $("notice-con").getElementsByTagName("div");

? ? ? ? if (lis.length != divs.length) return;

? ? ? ? for (var i = lis.length - 1; i >= 0; i--) {

? ? ? ? ? ? //遍歷所有的頁簽

? ? ? ? ? ? lis[i].id = i;

? ? ? ? ? ? lis[i].onmouseover = function() {

? ? ? ? ? ? ? ? //用that這個(gè)變量引用當(dāng)前滑過的li

? ? ? ? ? ? ? ? var that = this;

? ? ? ? ? ? ? ? //如果存在準(zhǔn)備執(zhí)行的定時(shí)器,立刻清除,只有當(dāng)停留時(shí)間大于500ms時(shí)才開始執(zhí)行

? ? ? ? ? ? ? ? if (timer) {

? ? ? ? ? ? ? ? ? ? clearTimeout(timer);

? ? ? ? ? ? ? ? ? ? timer = null;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? //延遲半秒執(zhí)行

? ? ? ? ? ? ? ? timer = setTimeout(function() {

? ? ? ? ? ? ? ? ? ? for (var j = 0; j < lis.length; j++) {

? ? ? ? ? ? ? ? ? ? ? ? lis[j].className = "";

? ? ? ? ? ? ? ? ? ? ? ? divs[j].style.display = "none";

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? lis[that.id].className = "select";

? ? ? ? ? ? ? ? ? ? divs[that.id].style.display = "";

? ? ? ? ? ? ? ? }, 500);

? ? ? ? ? ? }

? ? ? ? };

? ? }

</script>


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

舉報(bào)

0/150
提交
取消

鼠標(biāo)滑過怎么沒有反應(yīng)呢?

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

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

幫助反饋 APP下載

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

公眾號(hào)

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