Thursday, December 19, 2013

How To Add Count Down Redirect Script to Blog


By on Thursday, December 19, 2013


Hi all visitors, today we will learn how to add count down redirect script to blogger/website.This script is useful for every blogger and is easy to to add in blog or website.

Follow The Below Steps

1. Log in To Blogger
2. Go To Dashboard > Designs > Page Elements > 
3. Select 'HTML/Javascript' and add the below code

<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.makesomesense.com/"
var countdownfrom=12

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>
4. Now save the code.

 Note Replace var targetURL= and var countdownfrom both with your contents.

Work Done, Happy Blogging!

About Rafay Ansar

Rafay Ansar is a young geek, freelancer writer, blogger, social media expert and author of MakeSomeSense. He writes about technology, Information and Securities, Web Development, Tips And Tricks, Blogging And Other Web resources.