18 November 2009

Random Posts Widget with posts summary for Blogger.


One of the my subscriber mashad has asked me about the Random Posts widget. So here is that widget.

What is Random Posts Widget?

This widget displays random links of posts from your blog. This is differant from Recent posts or Popular Posts. This widget helps you as it brings some unpopular posts to your visitors.

Here is Live Demo.

How can I get this widget.
Sign in to Blogger >> Layout >> Page Elements >> Add a Gadget >> HTML/Java Script..

Now add following code in that

<script type="text/javascript">
var randarray = new Array();var l=0;var flag;
var numofpost=6;var wordnumber=5;</script>
<script style="text/javascript" src="http://free.blogger.help.googlepages.com/randompostswithsummary.txt">
<script src="/feeds/posts/default?alt=json-in-script&start-index=1&max-results=1000&callback=randomposts" type="text/javascript"></script>
<a href="http://blogger-help.blogspot.com/"><span style="font-size: 80%">Get This Widget </span></a> 

Now save it.

 numofpost=6 - It shows no. of random posts to be displayed.

wordnumber=5 - It shows length of post summary

Related Posts


April 14, 2010 at 12:55 AM

Can you show me how to make a random post showing only thumbnails when clicked take you to the post for blogger?

April 14, 2010 at 7:22 AM

Well there is no any solution for it yet.

Post a Comment


Twitter Delicious Facebook Digg Stumbleupon Favorites More