How to add countdown Redirect script

සුද්ද සිංහලෙන් කීවොත් මේකට කියන්නෙ වටේ යවනව කියල

  • Login to your blogger Dashboard and go to Design --> Page Elements.
  • Click on 'Add a Gadget' on the sidebar.
  • Select 'HTML/Javascript' and add the code given below and click save.
How to add countdown Redirect script රී ඩිරෙක්ට් හෙවත් වටේ යැවීම සිංහලයාගේ පුරුද්දයි.

<form name="redirect">
<center>
<font face="Arial"><b>You will be redirected to the script in<br /><br />
<form>
<input type="text" size="3" name="redirect2" />
</form>
seconds</b></font>
</center>
<script>
var targetURL="
http://www.danukazone.blogspot.com/"
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></form>
You will be redirected to the script in

seconds