Friday, October 24, 2008

Javascript Countdown Script

This code is simply and easy to use,
you can use for download script, website popUp, and other think. :D

let's see the script.

<div id="alpha"><a href="#" onclick="return false;">
link for what you want to go</a></div><br>
<script>
d4li = 5;
function countdown(){
if ((0 <= 100) || (0 > 0)){
d4li--;
if(d4li == 0){
document.getElementById('alpha').innerHTML =
"<a href=\"#\" onclick=\"return false;\"> "
+"Alpha Link </a>";
}
if(d4li > 0){
document.getElementById('alpha').innerHTML =
'Harap tunggu <font color="#FF0000"><b> '
+d4li+'</b></font> detik...';
setTimeout('countdown()',1000);
}
}
}
countdown();
</script>

let's try this one ;)

No comments: