<script>x='7';
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").disabled=false;
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><br><br>
<input type="button" value="http://pixelha.rozblog.com" id="show" disabled="true" style="width:165px" onclick="window.open('http://pixelha.rozblog.com/')">