标签:cti url htm attribute cat count window int oca
window.onload = function () {
var countdown = 5;
setInterval(function () {
if (countdown >= 0) {
document.getElementById(‘settime‘).innerHTML = countdown;
countdown--;
} else {
clearInterval();
window.location.href = document.getElementById(‘jumpUrl‘).getAttribute(‘href‘);
}
}, 1000)
}
标签:cti url htm attribute cat count window int oca
原文地址:http://www.cnblogs.com/myclovers/p/6237355.html