jQuery(document).ready(function() { var sec = 30 var timer = setInterval(function() { $("#condaianllkhir span").text(sec--); if (sec == 0) { $("#DrRO").delay(1000).fadeIn(1000); $("#condaianllkhir").hide(1000) .fadeOut(fast);} },1000); }); Click here to download You can download the file in 30 sec