A cópia do código é a seguinte:
<title> A página da web de contagem regressiva JS salta automaticamente o código </title>
<Script Language = "JavaScript" type = "text/javascript">
Função Atraso (URL) {
var atraso = document.getElementById ("time"). Innerhtml;
if (atraso> 0) {
atraso--;
Document.getElementById ("Time"). Innerhtml = atraso;
} outro {
window.top.location.href = url;
}
t = setTimeout ("deounurl ('" + url + "')", 1000);
}
função stop1 () {
t && cleartimeout (t);
}
</script>
<span id = "time" style = "background: #00bfff"> 1000 </span> irá automaticamente saltar após segundos. Se você não pular, clique no link abaixo <a href = "http://www.baidu.com"> meu Baidu </a>
<input type = "button" value = "pare jump" onclick = "stop1 ();">
<script type = "text/javascript">
deounurl ("http://www.baidu.com");
</script>
O código é simples, mas muito prático. Por favor, coloque -o em seu projeto de acordo com suas necessidades.