Skip to main content

Random Posts Widget Miniature Code

Random Posts Widget is an essential tool that can boost SEO of the blogger. This is the one of the most needed widgets on blogger. I have visited many sites and read many of posts related to Random Posts Widgets but no one can satisfy my needs. But somewhere down-the-line I found a Javascript that satisfy all my needs. I call it "Random Post Widget Miniature" as it does not require adding .CSS (<style>) on the blogger and easy to add. Following is the javascript that I needed most.
<script type="text/javascript">var randarray = new Array();var l=0;var flag;var numofpost=3;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 <; k++){if([k].rel=='alternate'){var item = "<li>" + "<a href=" +[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>
You can add this Widget Code where you want to possess Random Posts. Below is the given how to add Random Posts Widget in the Sidebar.
Random Posts Widget Miniature Code

Steps for Setting Random Post Widget Miniature in the Sidebar:

1. Login to the Blogger Account:-

User first need to login to the Blogger Account by typing ( on the address bar and Press Enter and Fill the login details in the new login panel of Google.

2. Choose the blog:-

Click on the Blog you want to add the widget to from the Blogger Dashboard.

3. Choose Layout:-

Click on the layout menu in the Blogger's Blog. Click on the Add a Gadget from Layout menu.

4. Add HTML/Javascript:-

Click on "Add HTML/Javascript" from the Pop-up menu opened by "Add a Gadget".

5. Save:-

Save the Gadget and enjoy the Random Posts Widget Miniature.


Popular posts from this blog

Download Sanrachna Typing Tool

Sanrachna Typing Tool is an powerful unicode hindi typing tool that helps in converting English letters in Hindi. Sanrachnacan be used to write in Hindi Unicode without learning Hindi Keyboard layout. Sanrachna is compatible with all versions of Windows like Windows Vista, Windows 7, Windows 8 and Windows 8.1 too.
For Sanrachna you must need .NET Frame Work 2 installed on your PC. Sanrachna have made easy for working on many websites. Sanrachna Typing Tool is wonderful and can be onned by "pressing *Caps Lock*" for typing in hindi. If user want to type in English user need to be press *Caps Lock* again. Download Sanrachna Hindi Typing Tool for Windows VistaDownload Sanrachna Hindi Typing Tool for Windows 7 and Windows 8

Meta NOINDEX is better than Blocking Robots

Hello Friends, welcome back to the blog; today I come with topics why Meta NOINDEX is better than blocking search engines by robots. As you all know about these two properties of Search Engine Optimization but let me explain it first for new webmasters.

Meta is property that webmaster keep in head tags of a HTML webpage that helps Search Engines to know basic facts about the site.

Example of Meta Property, the given meta property is called description:
<meta content='Something about the page' name='description'/>

Robot or called as Robots.txt is another property of SEO that helps the crawlers of different search engines helps in knowing whether are the areas to crawl and what are areas not to be crawled by them.

Example of Robots.txt (Our Robot text):

So, the question arises why should I not to be use Robots txt for blocking robots or why Meta NOINDEX is better. The answer is very simple and clear but first known How …

YouTube-Dl 2017.12.14

Youtube-Dl is a small command-line program to download videos from and a few more sites. It requires the Python interpreter (2.6, 2.7, or 3.2+), and it is not platform specific.

They also provide a Windows executable that includes Python. youtube-dl should work in your Unix box, in Windows or in Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.
Note: To make YouTube-Dl work in windows, you need to download Microsoft Visual C++ 2010 Redistributable Package (x86)
Download the Software (YouTube-Dl 2017.12.14): File Name: youtube-dl.exe
Software Name: YouTube-Dl
Version: 2017.12.14
Developer: Ricardo Garcia Gonzalez
File Size: 6.0
Official Link:
Download YouTube-Dl 2017.12.14