JavaScript Count Down

 

This script will count down from the number you assign to zero. It could be used in a redirect script.

 

Example

 

Script Source

<div id="variableVal"></div>
<script type="text/javascript">
<!--
// www.wizzardweb.co.uk

var seconds=11;

function timedown(){
if (seconds<=11){
seconds-=1
}
if (seconds<=-1){
seconds+=1
}
else
document.getElementById("variableVal").innerHTML = seconds;
setTimeout("timedown()",1000)
}

timedown()
-->
</script>

 

Please let me know if this script was helpful to you.

[rating]