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.
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
- Next, click on the 'Layout' tab
- click on the "Add a Gadget".
- click on the " HTML/JavaScript".
- Paste in the code.
<!-- New Random Posts Widget For Blogger by www.bloggertofree.blogspot.com -->save and enjoy!
<style type='text/css'>
#HTML4 ul li{
background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXHHkx_qIQKfmyH5VZ87Uyc55beRZ1vRH7fWLvXVdRH5GJ3eImxvfM03bWVqFnnPiZU98kFxxpMcDaKsh2ZLDUeD7ac50nZ5VTU7CuGJPyVVqp_5XPqo1EZquMmAw49DuISl_eo4AEDf4/s1600/greentickbullet.png) no-repeat ;
display:block;
list-style-type:none;
margin-bottom: 13px;
padding-left: 30px;
padding-top:0px;}
#HTML4 a{
color:blue;
}
</style>
<!-- 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;}}
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>
0 comments:
Post a Comment
Please do not spam Spam comments will be deleted immediately upon our review.
Regards,
JeHad Hussein
Note: Only a member of this blog may post a comment.