سلام این کد رو می تونید هر جا که دلتون خواست به کار ببرید
اینم کد رای تغیر زمان هم عدد 10 رو در کد عوض کنید
کد:
<div align="center"><form name="redirect"> <input type="text" size="2" name="redirect2" style="text-align:center; width:35px">
Seconds
</form></div>
<script>
<!--
var targetURL="http://www.laksoft.ir/"
var countdownfrom=10
var currentsecond=document.redirect.redirect2.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.redirect2.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
}countredirect()
//-->
</script>