this script is using for countdown (waiting) timer.
you can use for download script, website popUp, and other think.
let’s check it out.
this is the container or targer for countdown script:
<div id="antiteori">
<a href="#" onclick="return false;">link for what you want to go</a>
</div>
this is the javascript function
<script>
dn4 = 5; // how long the countdown
function countdown(){
if ((0 <= 100) || (0 > 0)){
dn4--;
if(dn4 == 0){
//countdown finished
document.getElementById('antiteori').innerHTML = "<a href=\"#\" onclick=\"return false;\">" + "My Link </a>";
}
if(dn4 > 0){
document.getElementById('antiteori').innerHTML = 'Please wait <font color="#FF0000"><b> ' + dn4 + '</b></font> second..';
setTimeout('countdown()',1000); //1000 is in mili seconds so it same as 1 second
}
}
}
countdown();
</script>
very easy eh?thats right!
This code is simply and easy to use,
and you can modify what you want.
thanks 4 reading….

