微件:倒计时/js:修订间差异
Lily Ellenvia(留言 | 贡献) 创建页面,内容为“<includeonly><script> document.addEventListener("DOMContentLoaded", function () { CountDownShort(); var i = window.setInterval(function () { if (new Date().getSeconds() == 0) { window.clearInterval(i); CountDownShort(); window.setInterval(CountDownShort, 60000); } }, 1000); }); function CountDownShort() { var a = document.getElementsByClassName("CDScontainer"); if (a.length == 0) { return; } var ct = new Date().getTim…” |
Lily Ellenvia(留言 | 贡献) 小无编辑摘要 |
||
第1行: | 第1行: | ||
<includeonly><script> | <includeonly><script> | ||
window.addEventListener("load", function() { | |||
CountDownShort(); | CountDownShort(); | ||
var i = window.setInterval(function () { | var i = window.setInterval(function () { |