-4
请检查我的脚本下面。请检查新手脚本
我试图添加一些颜色的一些文字...这是我设法到目前为止..是否正确?
<center> You will be redirected to the number one proven training system in <span style="color:blue;font-weight:bold"> <span id="countdowntimer">12 </span> Seconds </span> </center>
<script type="text/javascript">
var timeleft = 12;
var downloadTimer = setInterval(function(){
timeleft--;
document.getElementById("countdowntimer").textContent = timeleft;
if(timeleft <= 0)
clearInterval(downloadTimer);
},1000);
它是否达到预期的效果?这就是你如何确定它是否正确。 – FKEinternet
您发布的代码是否为某些文本添加了一些颜色*?我们无法看到正在使用这种无法使用上下文脚本的页面,因此您是唯一可以决定它是否正常工作的人。 –
这是倒计时的完美有效方法。然而,你改变颜色的地方并不是真的可见 – Icepickle