js循环倒计时代码 每5秒循环倒计时到0 再从5秒开始
scriptvar start = 5;var step = 1;function count(){ document.getElementById(div1).innerHTML = start; if(start == 5 || start == 0) step *= -1; start += step; setTimeout(count(),1000);}window.onload = count;/scriptdiv id=div1/div