亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
個人覺得,你要是不喜歡這個老師講課的風格,你可以去看其他老師的課程,慕課網上那么多的課程,總有一款適合你的吧,何必要向老師發泄你的垃圾情緒、甚至人身攻擊?分享是美德,尊重分享,尊重勞動。
老師講得特別好,特別細心,耐心,這點是最好的,聲音也很有感染力。
window.onload = function() {
var wrap = document.getElementById('wrap'),
pic = document.getElementById('pic'),
lists = document.getElementById('list').getElementsByTagName('li'),
index = 0,
timer = null;

window.clearInterval(timer);
timer = null;
timer = window.setInterval(autoPlay, 1000);
for(var i = 0; i < lists.length; i++) {
lists[i].id = i;
lists[i].onclick = function() {
changePic(this.id);
}
}
wrap.onmouseover = function() {
window.clearInterval(timer);
timer = null;
}
wrap.onmouseout = function() {
timer = window.setInterval(autoPlay, 1000);
}
function autoPlay() {
index++;
if(index >= lists.length) {
index = 0;
}
changePic(index);
}
function changePic(curIndex) {
for(var j = 0; j < lists.length; j++) {
lists[j].className = "";
}
lists[curIndex].className = "on";
pic.style.top = -(curIndex * 170) + "px";
index = curIndex;
}
}
send.onclick = function() {
timer=window.setInterval(function() {
times--;
if(times <= 0) {
send.disabled = false;
send.value = "發送驗證碼";
times = 60;
window.clearInterval(timer);
timer = null;
} else {
send.value = times + "秒后重試";
send.disabled = true;
}
}, 1000);
}
window.onload = function() {
var _p = $("menu").getElementsByTagName("p");
var _ul = $("menu").getElementsByTagName("ul");
if(_p.length != _ul.length) {
return;
}
for(var i = 0; i < _p.length; i++) {
_p[i].id = i;
_p[i].onclick = function() {
if(_ul[this.id].style.display == "" || _ul[this.id].style.display == "none") {
_ul[this.id].style.display = "block";
} else {
_ul[this.id].style.display = "none";
}
}
}
}
function $(id) {
return typeof id === "string" ? document.getElementById(id) : id;
}
一手正方形評
服 論
舒 搞
很 的
就 你
這唉麻發皮頭
老師提供的代碼,看評論都說有bug,也確實發現了,如果快速多次點擊按鈕,秒數速度會變得非???,在開始定時器之前,先清除定時器 clearInterval(timer); 就好了
媽賣批哦,send.disabled="false"是不存在的,disabled只有disabled和true這兩個屬性,想解除禁用就要removeAttribute("disabled")
媽賣批哦,send.disabled="false"是不存在的,disabled只有disabled和true這兩個屬性,想接觸禁用就要removeattribute("disabled")
其實直接that替換成lis[i]就ok了
$是老師自己寫的一個函數,又沒引入jQuery的js
課程須知
1、您應該已經熟悉html標簽和css樣式表;2、您還應該已經熟悉JavaScript 或 jQuery的基礎知識。
老師告訴你能學到什么?
您可以舉一反三,制作非常精美風格多樣的 Tab 切換效果,能夠幫助你豐富或改進網站中的選項卡功能的用戶體驗。

微信掃碼,參與3人拼團

微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網的支持!

本次提問將花費2個積分

你的積分不足,無法發表

為什么扣積分?

本次提問將花費2個積分

繼續發表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消