Learn How To Become a blogger ,Free Templates,Blogger Widgets, Blogger Gadgets,Blogger Tricks And Tips ,Download browsers,software,Net

Monday, August 13, 2012

New Random Posts Widget For Blogger

Random Posts widget is an awesome widget for your Blogger Blog.Most important feature of this widget is it lets your Blog visitors to surf more blog posts in your blog.Surely it increases your Blog's internal links that lets your blog higher traffic.
Although "Related Posts Widget" and "Popular Posts Widget" are important for all types of blogs, but in blogs where almost all the posts are similar (like blogs with articles on recipes, money-making, computer tricks or automobiles etc.), visitors usually do not mind reading some quite-unrelated posts too. So along with Related Posts widget, a "Random Posts widget" on your blog will help you to increase the number of page impressions.

 How To Install
  1. Next, click on the 'Layout' tab
  2.  click on the "Add a Gadget".
  3. click on the " HTML/JavaScript".
  4. Paste in the code.
  <!-- New Random Posts Widget For Blogger by www.bloggertofree.blogspot.com -->
<style type='text/css'>
#HTML4 ul li{
background:transparent url(http://1.bp.blogspot.com/-rhbyr3jdDc0/UCWDcUjnVqI/AAAAAAAABdI/oCnpFV73IlE/s1600/greentickbullet.png) no-repeat ;
margin-bottom: 13px;
padding-left: 30px;

#HTML4 a{

 <!-- New Random Posts Widget For Blogger by www.bloggertofree.blogspot.com -->

<script type="text/javascript">
var randarray = new Array();var l=0;var flag;
var numofpost=10;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;}}
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>";
<script src="/feeds/posts/default?alt=json-in-script&start-index=1&max-results=1000&callback=randomposts" type="text/javascript"></script>
   save and enjoy!


Post a Comment

Please do not spam Spam comments will be deleted immediately upon our review.

JeHad Hussein

Note: Only a member of this blog may post a comment.

Subscribe via email for free

Activate your subscription by clicking on the link in an email from Feedburner. We respect your privacy.

Most Popular


random topics


Are you looking for?

Become a Fan On Facebook!

Follow @Bloggertofree