coba lihat source code dibawah ini :
var c =20; | |||
function fcwait() { | |||
if(document.getElementById("divDLWait")==null || document.getElementById("divDLStart")==null){ | |||
setTimeout("fcwait()", 1000); | |||
return; | |||
} | |||
if (c > 0) { | |||
var el = document.getElementById("downloadDelayTimeSec"); | |||
if( el ){ | |||
el.innerHTML = "" + c; | |||
} | |||
c = c - 1; | |||
setTimeout("fcwait()", 1000); | |||
} | |||
else { | |||
document.getElementById("divDLWait").style.display = 'none'; | |||
document.getElementById("divDLStart").style.display = 'block'; | |||
|
javascript: var c = 0;
kemudian enter