July 8, 2009

Random Post Widget and Script for Blogger Blogs



Random posts widget displays random links of your blog. This help show content that is neither recent nor popular (because it is random :)). The widget displays links in form of link lists. I am so damn sure that this widget will definitely bring some excitement to your blogger powered blog. Letting your readers surf your blog to the fullest extent by creating a link to a random post in your blog's sidebar.


Installation and Customization:


1. Log into Blogger >> Layout >> Add a Widget .
2.Then paste this code into the text area


<script type="text/javascript">
var randarray = new Array();var l=0;var flag;
var numofpost=5;var wordnumber=5;</script>
<script style="text/javascript" src="http://www.hotlinkfiles.com/files/2659415_vylfp/random-posts-with-summary_015721.js">
</script>
<script src="/feeds/posts/default?alt=json-in-script&start-index=1&max-results=1000&callback=randomposts" type="text/javascript"></script>

3. Change the number of posts links you want to display.Just change the number to anything you want !

numofpost=5

4. Change the number of words you want to include in the summary to display.Just change it again into what ever you want again !

wordnumber=5


5. Then just save the template and view your blog !

Enter your email address:

 

Copyright 2009 All Rights Reserved Revolution Two Church theme by HackingAday