個人覺得,你要是不喜歡這個老師講課的風格,你可以去看其他老師的課程,慕課網上那么多的課程,總有一款適合你的吧,何必要向老師發泄你的垃圾情緒、甚至人身攻擊?分享是美德,尊重分享,尊重勞動。
2017-05-18
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);
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);
2017-05-17
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);
}
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);
}
2017-05-17
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;
}
}
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;
}
}
2017-05-17
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);
}
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);
}
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";
}
}
}
}
_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";
}
}
}
}
媽賣批哦,send.disabled="false"是不存在的,disabled只有disabled和true這兩個屬性,想解除禁用就要removeAttribute("disabled")
媽賣批哦,send.disabled="false"是不存在的,disabled只有disabled和true這兩個屬性,想接觸禁用就要removeattribute("disabled")