How to Redirect Blogger to Another Website

How to Redirect Blogger to Another Website
There are a number of reasons you may want to automatically send visitors to your blog to another URL or from one blog to another.For example if you moved your blog, if you had two blogs and wanted to focus one just one and cover both topics.Automatically directing visitors to another URL is actually quiet easy and only requires a snippet of code added to the top of the template. In this post i will show you the code needed to automatically Redirect from a Blogger Blog to any other URL. Before i have share Add Google Translate Gadget to Blogger i hope you will like this post also and before Translate Gadget i have also share Add Flying Letters Below Mouse Pointer Animation.

Lets Start to Redirect Blogger to Another Website.

Now Follow These 6 Steps.

1. Log in to blogger  and Go to Layout >> Add GadgetsAdd a Gadgets


2. Click Add Gadget and select 'HTML/Javascript'HTML/Javascript

3. Paste below code

<form name="redirect">
<center>
<font face="Arial"><b>Your site will redirect within<br><br>
<form>
<input type="text" size="3" name="redirect2">
</form>
seconds</b></font>
</center>

<script>

var targetURL="http://www.RexHacker.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>
Note: You Can Copy This Code From This Link.

4.   Replace  var target URL  with redirect URL

5. Replace var countdownfrom value for your like. (redirect time)

6. Click Save you are Done.

Hiç yorum yok:

Yorum Gönder