Home How To Blogging Tips SEO

Pages

Showing posts with label Blogging Tips. Show all posts
Showing posts with label Blogging Tips. Show all posts

Aug 15, 2012

Code for Random Posts

This Javascript code takes your blog or website feeds as input and displays random post titles. Adding this code to your blog or website is pretty easy. Whenever user visits your website he/she will see some random post titles of your blog. Thus if user finds any interesting post title he/she clicks on it and reads that post too thus increases user engagement with your blog or website.

Blogger Blog go to your blogger dashboard, click on layout, add a HTML/Javascript gadget, paste the following code and lastly click on save.

Wordpress blog add html/Javascript adder plugin and then go to your dashboard click on Appearance click on widgets there you will find html/Javascript adder drag it to side bar, paste the following code and click on save . Others you can copy the code wherever you want on your website in a HTML editor.

Code for Random Posts


<script type="text/javascript">
var randarray = new Array();var l=0;var flag;
var numofpost=8;function randomposts(json){
var total = parseInt(json.feed.openSearch$totalResults.$t,10);
for(i=0;i < numofpost;){flag=0;randarray.length=numofpost;l=Math.floor(Math.random()*total);for(j in randarray){if(l==randarray[j]){ flag=1;}}
if(flag==0&&l!=0){randarray[i++]=l;}}document.write('<ul>');
for(n in randarray){ var p=randarray[n];var entry=json.feed.entry[p-1];
for(k=0; k < entry.link.length; k++){if(entry.link[k].rel=='alternate'){var item = "<li>" + "<a href=" + entry.link[k].href + ">" + entry.title.$t + "</a> </li>";
document.write(item);}}
}document.write('</ul>');}
</script>
<script src="/feeds/posts/default?alt=json-in-script&start-index=1&max-results=1000&callback=randomposts" type="text/javascript"></script>

In the above code 8 represents no of post titles you can replace it with your desired number.
For example you can see some random post titles in my blog as shown in below pic when you refresh the page you can see the change in post titles
Code for Random Posts
You May Also Like
1. Get Previous and Next Post Titles in Blogger

Aug 10, 2012

How to Make Your Blog or Website Multilingual?

Blogs and websites receive traffic from different parts of the world. Sometimes visitors don't understand the language of your blog or website. Especially news and regional blogs or websites will be in regional language which visitors can't understand. So it's better to include a language translator in your blog or website so that visitors can read the post in their own langauge. Google Translator supports over 60 languages. Let us see how to include a google translator in your blog or website.


For Blogger Blog

1. Go to blogger dashboard and then click on layout.
2. Based on your layout click on add gadget and then add translate gadget as shown in below pic.
3. Customize gadget according to your wish and then click on save. That's it from now google translator is part of your blogger blog. Try to change language and see how it works.
Blogger gadgets

For All Blogs and Websites

1. Go to Google Translator and click on Website Translator as shown in below pic.
google translator
2. Click on add website and then in next window enter your website or blog url and select your blog or website's original language as shown in below pic
google blog or website translator
3. In the next window customize your google translator and then click on get code as shown in below pic.
google website translator settings
4. You will get two codes in next window as shown in below pic. 
code for google translator
Code in 1st block you can copy it and paste in your blog or website template code before </head> tag. You may ignore 1st block code. Copy the 2nd block code and follow below steps.

For Blogger-  Go to blogger dashboard click on layout and an HTML/Javascript gadget as shown in below pic, paste the 2nd block code in it and then click on save.
blogger html/javascript gadget
blogger html/javascript gadget

For Websites- Paste the 2nd block code in your website template wherever you want. This is how your blog or website becomes multilingual. For example in my blog you can see google transalator as shown in below pic. Hope this helps!
google translator supported languages


You May Also Like
1. How to Remove Watermark from Images?

Jul 29, 2012

Difference Between Blogger and Wordpress

Blogger or Wordpress?There are many websites on the web which provides blogging service of which Blogger and Wordpress are famous. Both have millions of users. Most of the times people get confused which to use either blogger or wordpress? In this post I will explain the pros and cons of Blogger as well as Wordpress based on which you can decide which blogging service you should use.





Difference Between Blogger and Wordpress

Blogger

 1. Blogger is a google service.


 2. Blogger is entirely developed by google.

 3. To use blogger you don't need any 
technical knowledge.


 4. Blogger is entirely free service.


 5. Blogger has many gadgets but those are outdated. 

 6. Since blogger is google product any 
google product can be deleted anytime
without intimation. In such case all your efforts will go in vain.

 7. Customizations are limited in blogger. 

 8. Very few web hosting sites provide support to blogger.

 9. Blogger blog gets some search priority since it is google product.

10. Compared to wordpress less no. of users.

Wordpress

 1. Wordpress is a publishing  site.

 2. Wordpress is like a community 
everyone can contribute to wordpress.

 3.  To use wordpress you must have 
minimum technical knowledge.

 4. In wordpress sometimes you need to
spend some bucks from your  pocket.

 5. Wordpress has thousands of plugins and widgets.

 6. Wordpress is highly secure and reliable.


 7. Where as in wordpress you can customize your blog in any way.

 8. Many web hosting sites has 1 click installation for wordpress.

 9. Wordpress also provides search engine optimization service.

10. Wordpress has large no. of users.


Finally those who are not techy and wants everything for free then choose blogger. Those who wants professional looking blog and ready to spend some bucks then choose wordpress.

You Mays Also Like

1. 10 Tips to Become a Successful Blogger



Jun 26, 2012

How to Disable Right Click to Prevent Copying of Images?

Being a blogger or content creator we add images to our posts. Images express more than words. But when someone visits your website or blog they simply right click on the image to save and use it in their content. There are lot of functions of right-click like page reloading, open link in new tab etc. So disabling right click on image is enough. To disable right click on images follow the instructions


 1. To disable right click on all images - Go to your blogger dashboard, click on Template then click on Edit HTML and click tho proceed and Expand widget templates and copy the following code immediately after </head>

<script type="text/javascript">
//<![CDATA[
function nocontext(e) {
        var clickedTag = (e==null) ? event.srcElement.tagName : e.target.tagName;
        if (clickedTag == "IMG") {
            alert(alertMsg);
            return false;
        }
    }
    var alertMsg = "Image context menu is disabled";
    document.oncontextmenu = nocontext;
//]]>
</script>


2. To disable right click on single image - Normal image tag will be like this
<img  border="0" src="url of image" /> 
To disable right click ad this code in image tag
oncontextmenu='alert("Image context menu is disabled");return false;'


Final tag will ne like this
<img oncontextmenu='alert("Image context menu is disabled");return false;'  border="0" src="url of image" /> 
You can change the highlighted text according to your wish. For demo click on following image. Hope this helps!
Disable Right Click on Images
You May Also Like

Get Previous and Next Post Titles in Blogger

In my previous post we learned how to replace Newer, Older and Home links with your own text and images in blogger. Now I'm going to explain how to get Previous post title in place of  Newer Post link and Next post title in place of Older Post link.

1. First backup your blogger template. If you don't know how to backup your blogger template click here
2. If you already copied any jquery tag skip this step. Else go to your blogger dashboard click on Template. Click on Edit HTML then click to Proceed and Expand widget templates and search for  </head> Now copy following code and paste before </head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
Now save the template and close it.
3. Now go back to your blogger dashboard, click on layout and Add a Gadget then select HTML/Javascript gadget and copy the following code in content block. 

<style type="text/css">
#blog-pager-newer-link {font-size:20;width:500px;text-align:left;}
#blog-pager-older-link {font-size:20;width:500px;text-align:right;}
</style>
<script type="text/javascript">
$(document).ready(function(){
var newerLink = $("a.blog-pager-newer-link").attr("href");
$("a.blog-pager-newer-link").load(newerLink+" .post-title:first", function() {
var newerLinkTitle = $("a.blog-pager-newer-link").text();
$("a.blog-pager-newer-link").text("<< " + newerLinkTitle);
});
var olderLink = $("a.blog-pager-older-link").attr("href");
$("a.blog-pager-older-link").load(olderLink+" .post-title:first", function() {
var olderLinkTitle = $("a.blog-pager-older-link").text();
$("a.blog-pager-older-link").text(olderLinkTitle + " >>");//rgt
});
});
</script> 
Save gadget and from now in place Newer Post you'll see Previous Post Title and in place of Older Post you'll see Next Post Title as shown in below pic. You can change font size and width according to your convenience.
blogger previous and next post titles
You May Also Like

How to Import or Export Blogger Blog Posts?

If you admin a blog it's better to have a backup of your blog posts. You can import or export your blogger blog posts. Here goes the procedure..

Export/Import Your Posts - If you have a copy blogger posts xml file. In any odd situations if you lost your blogger posts you can easily import  all your posts. Go to your blogger dashboard click on Settings and then click on other settings. Now you will see Import, Export Delete options on top of the screen. You can either export your blogger posts or if you have an xml file of your posts you can import them.
Import or export blogger posts
You May Also Like
1. How to Backup or Restore Your Blogger Template?
2. Blogger Template Corrupted - How to Get Default Blogger Template?

Jun 25, 2012

Customize Your Blogger Newer, Older & Home Links

You can customize your Newer, Older & Home links that appear below every post in blogger. You may replace them with your own text or image. Just follow the instructions.
Blogger newer or older or home links

Go to your blogger dashborad click on template and then click on Edit HTML, Click on Proceed and Expand Widget Templates
1. For Newer Link - Search for the following code
 <data:newerPageTitle/>
Replace it with following code
 <img src="URL-OF-PREVIOUS-BUTTON"/> or any text like PREVIOUS

2. For Older Link - Search for the following code
 <data:olderPageTitle/>
Replace it with following code
 <img src="URL-OF-NEXT-BUTTON"/> or any text like NEXT

3. For Home Link - Search for the following code
 <data:homeMsg/>
Replace it with following code
 <img src="URL-OF-HOME-BUTTON"/> or any text like Your Blog Title
Copy image urls in highlighted place. Save your Template. Now you can see new links at the bottom of your blog posts.


You May Also Like

Jun 24, 2012

Code for Scroll to Top or Bottom Button

Your website or blog should be in such a way that user should be able to easily navigate through your website. Smooth scrolling is the ability to scroll to the top of the page or bottom of the page or to particular segment of a page. Add the following code to your blog or website for smooth scrolling


Code for Scroll to Bottom
<a href="#" class="scrollToBottom">Scroll to Bottom</a>
<script type="text/javascript">
$(document).ready(function(){
 $('a.scrollToBottom').click(function(){
 $('html, body').animate({scrollBottom:0}, 'slow');
 return false;
 });
})
</script>

Code for Scroll to Top
<a href="#" class="scrollToTop">Scroll to Top</a>
<script type="text/javascript">
 $(document).ready(function(){
 $('a.scrollToTop').click(function(){
 $('html, body').animate({scrollTop:0}, 'slow');
 return false;
 });
 })
</script>

You can customize the code, instead of text like "Scroll to Top" you can place an image showing up arrow using image tag in anchor tag. Copy above code wherever you want in your website. For bloggers add html/javasript gadget in the bottom of your layout and paste code scroll to top code there. If you are familiar in customizing template paste the code after the comments code in your template.

scroll to top or bottom buttonFor demo scroll to bottom of this page you will find a black colored circle with upward arrows inside click on that then page will scroll to top smoothly.

You May Also Like
1. Prevent Your Blogger Blog from Redirecting to Country Specific Domains
2. Custom Search Box for Your Blog or Website

Jun 20, 2012

How to Backup or Restore Your Blogger Template?

If you have a blog it's better to backup your template because you can't say what will happen in future. If you are trying to change your blogger template it may get corrupted. There are chances you may loose your posts. In such situations backup may help you a lot. 

Backup or Restore Blogger Template -

When your doing changes to your template if anything goes wrong you can use backup template to restore your template. To backup your template go to your blogger dashboard and click on Template. Now you can see Backup/Restore on top right corner of your screen click on it. In the pop up window you have two options either you download a copy of your template or you can restore your template if you already have a backup copy with you. You can see the steps in below pic.
Backup or Restore Blogger Template


You May Also Like
1. How to Import or Export Blogger Blog Posts
2. Blogger Template Corrupted - How to Get Default Blogger Template?

Jun 18, 2012

Blogger Template Corrupted - How to Get Default Blogger Template?

Today I tried to change my blogger template unfortunately it went wrong. My blogger data post template got corrupted. I lost all my blog posts. I almost decided to delete my blog permanently. Then I got an !dea to reset my blogger template to default template. There are 2 ways to reset your blogger template to default template. 

1. Go to your blogger Dashboard, click on Template and then click on Edit HTML. Next click on Proceed without expanding widget templates look for following code and replace Blog1 with Blog2 in that code and then click on Save Template. A warning message will appear press ok to continue. That's it your blogger template will be reset to default template.

<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/>
bolgger template edit html
2.  Go to your blogger Dashboard, click on Template and then click on Edit HTML. Next click on Proceed. Finally click on Revert widget templates to default as arrow pointed in below pic, a warning message will appear click on ok to continue and Save Template. 
blogger default template
 I reset my blogger template to default by using 2nd method. If you are able to reset your blogger template pls leave a comment.

You May Also Like
1. How to Backup Your Blogger Blog?

Jun 12, 2012

10 Tips to become a Successful Blogger

Everyone can create a blog but few can become a successful bloggers. Following are the tips to become a successful blogger.
blogging

Tips to become a successful blogger:

1. Know Your Interest - Before creating a blog identify the area in which you are interested in. Then create a blog of your interest. For example if you love technology create a tech blog.
2. Be Creative - Your blog content should be in a such a way that readers should show interest in visiting your blog.
3. Don't beat Around the Bush - Do not say same point again and again because readers will get bored. So get to the point.
4. Slow and Steady wins the Race - Do not expect more no. of readers from the beginning. Do blogging with passion, readers will recognize your work slowly.
5. Be Interactive - Writing posts is not enough, create forums and participate in forums with readers. Try different ways to interact with readers.
6. Appreciate Other's Work - Being a blogger you should have the habit of appreciating other Blogger's work and also suggestions by readers.
7. Be Consistent - Don't just create the blog and leave it. Do postings in the blog regularly. Then only readers will visit your blog regularly.
8. Make use of Internet Tools - There are different tools available in internet for improving your blog look and feel.
9. Socialize Your Blog -  Connect your blog with different social sites like twitter and facebook  for more traffic.
10. Make Some Decent Income - If your blog has good traffic then you can earn some decent income through google adsense program or through some other affiliation programs.

You May Also Like
1. Who is a Professional Blogger?

Who is a Professional Blogger?

Professional Blogger
Internet has spread widely across the globe. Internet is flooded with millions of Blogs. Every half a second a new blog is getting created. Then what makes you different from other bloggers? 

A professional blogger is a blogger who takes blogging as a full-time profession and dedicates more time for blogging.  In India only few professional bloggers are there. To be a professional blogger one must have passion and patience.

You May Also Like
1. 10 Tips to Become a Successful Blogger.

May 26, 2012

Prevent Your Blogger Blog from Redirecting to Country Specific Domains

For selective censorship google redirects your blogger blog to country specific domains. For example some countries won't allow particular type of content, in that case google simply blocks those pages in that particular country and makes them available for other parts of the world. If your blog is abc.blogspot.com it will be redirected to abc.blogspot.in. In Australia it will be redirected to  abc.blogspot.au etc. 

Steps to prevent your blog to redirect to country specific domains:

1.  Go to your blogger dashboard and click on Template
2. Click on Edit HTML ad then click on proceed.
3. Expand the widget and copy the following code immediately after <head> tag.
4. Lastly click on Save Template.
blogger edit html
<script type="text/javascript">
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf("."));
if (ctld != ".com") {
var ncr = "http://" + blog.substr(0, blog.indexOf("."));
ncr += ".blogspot.com/ncr" + slug;
window.location.replace(ncr);
}
</script>
You May Also Like
1. Blogger Post Summaries and Thumbnails in 3 Steps
2. Blogger Custom Search Box
3. Add Email Subscription to Your Blog or Website.

May 12, 2012

Blogger Custom Search Box

With custom search box visitor can search content on your blog or entire web. Blogger can also get some decent income through adsense for search. 


Steps to Add Custom Search Box to Your Blogger Blog:

1. Go to your blogger dashboard click on layout.
2. Click on add gadget and select search box.
3. Select options and click on save.

blogger gadgets
















You May Also Like.
1. Adsense for Search.
2. Custom Search Box for Your Blog or Website
3. Adsense for Feeds.
4. Create RSS Feeds for Your Website or Blog

May 9, 2012

Code for Small Pop up Facebook Like Box

If you want a pop up facebook like box to appear whenever a new user visits your website or blog just follow following instructions.


Code for Small Pop up Facebook Like Box

1. In your website copy and paste following code before </head>.
2. If you are blogger, go to blogger dashboard and click on layout
3. Add a new html/javascript gadget and copy the following code.




<style>
    #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;} 
    #cboxOverlay{position:fixed; width:100%; height:100%;} 
    #cboxMiddleLeft, #cboxBottomLeft{clear:left;} 
    #cboxContent{position:relative;} 
    #cboxLoadedContent{overflow:auto;} 
    #cboxTitle{margin:0;} 
    #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;} 
    #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;} 
    .cboxPhoto{float:left; margin:auto; border:0; display:block;} 
    .cboxIframe{width:100%; height:100%; display:block; border:0;} 
    /*


       User Style: 
       Change the following styles to modify the appearance of ColorBox.  They are 
       ordered & tabbed in a way that represents the nesting of the generated HTML. 
    */ 
    #cboxOverlay{background:#000;opacity:0.5 !important;} 
    #colorbox{ 
            box-shadow:0 0 15px rgba(0,0,0,0.4); 
           -moz-box-shadow:0 0 15px rgba(0,0,0,0.4); 
            -webkit-box-shadow:0 0 15px rgba(0,0,0,0.4); 
           } 
      
   #cboxTopLeft{width:14px; height:14px; background:url(http://4.bp.blogspot.com/
-_VSGGUcsUPE/TwNIXL6W2qI/AAAAAAAAFwQ/5KR8F-N3Mqk/s1600/controls.png) no-repeat 0 0;} 
#cboxTopCenter{height:14px; background:url(http://3.bp.blogspot.com/-dJQm3QEd5Iw/
TxohpCter-I/AAAAAAAAF0Q/GRny7olLbv8/s400/border.png) repeat-x top left;} 
    #cboxTopRight{width:14px; height:14px; background:url(http://4.bp.blogspot.com/
-_VSGGUcsUPE/TwNIXL6W2qI/AAAAAAAAFwQ/5KR8F-N3Mqk/s1600/controls.png) 
no-repeat -36px 0;} 
    #cboxBottomLeft{width:14px; height:43px; background:url(http://4.bp.blogspot.com/
-_VSGGUcsUPE/TwNIXL6W2qI/AAAAAAAAFwQ/5KR8F-N3Mqk/s1600/controls.png)
 no-repeat 0 -32px;} 
    #cboxBottomCenter{height:43px; background:url(http://3.bp.blogspot.com/
-dJQm3QEd5Iw/TxohpCter-I/AAAAAAAAF0Q/GRny7olLbv8/s400/border.png) 
repeat-x bottom left;} 
    #cboxBottomRight{width:14px; height:43px; background:url(http://4.bp.blogspot.com/
-_VSGGUcsUPE/TwNIXL6W2qI/AAAAAAAAFwQ/5KR8F-N3Mqk/s1600/controls.png)
 no-repeat -36px -32px;} 
    #cboxMiddleLeft{width:14px; background:url(http://4.bp.blogspot.com/-_VSGGUcsUPE/
TwNIXL6W2qI/AAAAAAAAFwQ/5KR8F-N3Mqk/s1600/controls.png) repeat-y -175px 0;} 
    #cboxMiddleRight{width:14px; background:url(http://4.bp.blogspot.com/-_VSGGUcsUPE/
TwNIXL6W2qI/AAAAAAAAFwQ/5KR8F-N3Mqk/s1600/controls.png) repeat-y -211px 0;} 
    #cboxContent{background:#fff; overflow:visible;} 
        #cboxLoadedContent{margin-bottom:5px;} 
        #cboxLoadingOverlay{background:url(http://2.bp.blogspot.com/-bMneOFi_UDo/
Txohpge3Z9I/AAAAAAAAF0s/AbVgxX9pXtQ/s400/loadingbackground.png) no-repeat center center;} 
        #cboxLoadingGraphic{http://3.bp.blogspot.com/-SKktU1-SCCw/TxohpRB19LI/
AAAAAAAAF0Y/iwIo3LnjoE0/s400/loading.gif) no-repeat center center;} 
        #cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; 
font-weight:bold; color:#7C7C7C;} 
        #cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;} 
        #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px;
 background:url(http://4.bp.blogspot.com/-_VSGGUcsUPE/TwNIXL6W2qI/AAAAAAAAFwQ/
5KR8F-N3Mqk/s1600/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;} 
        #cboxPrevious{left:0px; background-position: -51px -25px;} 
        #cboxPrevious.hover{background-position:-51px 0px;} 
        #cboxNext{left:27px; background-position:-75px -25px;} 
        #cboxNext.hover{background-position:-75px 0px;} 
        #cboxClose{right:0; background-position:-100px -25px;} 
        #cboxClose.hover{background-position:-100px 0px;} 
        .cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;} 
        .cboxSlideshow_on #cboxSlideshow.hover{background-position:-150px 0px;}
        .cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;} 
        .cboxSlideshow_off #cboxSlideshow.hover{background-position:-125px 0px;}
    /*-----------------------------------------------------------------------------------*/ 
    /*   Facebook Likebox popup For Blogger Version 2.0 
    /*-----------------------------------------------------------------------------------*/ 
    #subscribe { 
        font: 12px/1.2 Arial,Helvetica,san-serif; color:#666; 
    } 
    #subscribe a, 
    #subscribe a:hover, 
    #subscribe a:visited { 
        text-decoration:none; 
    } 
    .box-title { 
       color: #F66303; 
       font-size: 18px !important; 
       font-weight: bold; 
       margin: 10px 0; 
    border:1px solid #ddd; 
    -moz-border-radius:6px; 
    -webkit-border-radius:6px; 
    border-radius:6px; 
    box-shadow: 5px 5px 5px #CCCCCC; 
    padding:10px; 
    line-height:25px; font-family:arial !important; 
    }

    .box-tagline { 
       color: #999; 
       margin: 0; 
       text-align: center; 
    } 
    #subs-container { 
        padding: 35px 0 30px 0; 
        position: relative; 
    } 
    a:link, a:visited { 
    border:none; 
    } 
    .demo { 
    display:none; 
    }

/* ---------MBT Subscribe Form---------- */
    .box-title1 { 
    border:1px solid #ddd; 
    -moz-border-radius:6px; 
    -webkit-border-radius:6px; 
    border-radius:6px; 
    box-shadow: 5px 5px 5px #CCCCCC; 
        padding:10px; 
  margin: 10px 0; 
    }


    .enteryouremail{ 
background: #fff !important;
border: 1px solid #d2d2d2; 
padding: 0px 8px 0px 8px; 
color: #a19999; font-size: 12px; 
height: 25px; width: 165px; 
border-radius: 5px; 
-moz-border-radius: 5px; 
-webkit-border-radius: 5px; 
margin:0px; 
}
    .submitbutton{ 
background:#F66303; 
border: 1px solid #F66303; 
text-shadow: 1px 1px 1px #333; 
box-shadow: 3px 3px 3px #666; 
font:bold 12px Arial, sans-serif; 
color: #fff; 
height: 25px; 
padding: 0 12px 0 12px; 
margin: 0 0 0 5px; 
border-radius: 5px; 
-moz-border-radius: 5px; 
-webkit-border-radius: 5px; 
cursor:pointer;}
    </style>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'></script> 
<script src="http://mybloggertricks.googlecode.com/files/jquery.colorbox-min.js"></script> 
<script type="text/javascript"> 
jQuery(document).ready(function(){ 
   if (document.cookie.indexOf('visited=true') == -1) { 
       var fifteenDays = 1000*60*60*24*30; 
       var expires = new Date((new Date()).valueOf() + fifteenDays); 
       document.cookie = "visited=true;expires=" + expires.toUTCString(); 
   $.colorbox({width:"400px", inline:true, href:"#subscribe"}); 
       } 
}); 
</script> 
  
  
        <div style='display:none'> 
       <div id='subscribe' style='padding:10px; background:#fff;'> 
            <h3 class="box-title">Receive all updates via Facebook. Just Click the Like Button Below
<center><p style="line-height:3px;" >▼</p></center></h3> 
          <center>

<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Ftechguide&amp;width=300&amp;colorscheme=light
&amp;show_faces=true&amp;border_color=%23ffffff&amp;stream=false&amp;header=false&amp;
height=258" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:258px;" allowtransparency="true"></iframe>
</center> 
<div class="box-title1 ">
<center> 
<h3 style="color:#F66303;">You can also receive Free Email Updates:</h3> 
    <form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=techknol', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><input gtbfieldid="10" class="enteryouremail" name="email" value="Enter your email here..." onblur="if (this.value == &#39;&#39;) {this.value = &#39;Enter your email here...&#39;;}" onfocus="if (this.value == &#39;Enter your email here...&#39;) {this.value = &#39;&#39;;}" type="text" /><input value="techknol" name="uri" type="hidden" /><input value="Submit" class="submitbutton" type="submit" /></form>
</center> 
</div></div></div>




facebook like box4. Now find (press ctrl+F or F3) and type techguide and replace it with your facebook fan page user name
5. Find (press ctrl+F or F3) and type techknol and replace it with your feed name.
6. By default it is set to 30 days. once pop up box appears for new user it will again reappears after 30 days. You can change that value but if it appears repeatedly visitor feel irritated.

You May Also Like
1. Blogger Post Summaries and Thumbnails in 3 Steps.
2. Custom Search Box to Your Website or Blog
3. Add Email Subscription to Your Blog or Website.
4. Create RSS Feeds for Your Website or Blog
5. Prevent Your Blogger Blog From Redirecting to Country Specific Domains.