<script>x='5';
function reza(){
h=x--;
document.getElementById("down").style='display:none';
var y=document.getElementById("y").innerHTML=h;
if(h==0){
document.getElementById("y").style='display:none';
document.getElementById("show").style='display:block;width:180px;';
clearInterval(time);
}
}
function ti(){
var time=setInterval(function() {reza()},1000);
}
</script>
<input type="button" value="دانلود" onclick="reza();ti()" id="down">
<span id="y" style="font:20px tahoma;"></span>
<input type="url" value="http://pixelha.rozblog.com" id="show" style="display:none;" onclick="window.open('http://pixelha.rozblog.com/')">