Step -1 First go to your blogger dashboard - Login
Step -2 Go to the "Layout" section.
Step -3 Select "Add a gadget"
Step -4 Choose Html/JavaScript from the popup menu.
Step -5 Copy the below Html code and paste it in Html/JavaScript Box.
Step -7 After that, save the widget, refresh your blog and see the magic.
Finished And chack Your website.
Step -2 Go to the "Layout" section.
Step -3 Select "Add a gadget"
Step -4 Choose Html/JavaScript from the popup menu.
Step -5 Copy the below Html code and paste it in Html/JavaScript Box.
<ul id="random-posts"></ul>
<style scoped="" type="text/css">
#random-posts{list-style:none;margin:0;padding:0}
#random-posts li{padding:0 0 5px 0;font-size:90%;margin:5px 0;border-bottom:1px solid rgba(0,0,0,0.1)}
#random-posts li a{color:#333}
</style>
<script type='text/javascript'>
//<![CDATA[
var homePage = "http://rajdeephalvadiya.blogspot.com/",
numPosts = 8;
function randomPosts(a){if(document.getElementById("random-posts")){var e=shuffleArray(a.feed.entry),title,link,img,content="",ct=document.getElementById("random-posts");for(var i=0;i<numPosts;i++){for(var j=0;j<numPosts;j++){if(e[i].link[j].rel=="alternate"){link=e[i].link[j].href;break}}var title=e[i].title.$t;content+='<strong><li class="random-posts"><a href="'+link+'" title="'+title+'" target="_blank">'+title+'</a></li></strong>'}ct.innerHTML=content}}function shuffleArray(arr){var i=arr.length,j,temp;if(i===0)return false;while(--i){j=Math.floor(Math.random()*(i+1));temp=arr[i];arr[i]=arr[j];arr[j]=temp}return arr}var random_post=document.createElement('script');random_post.src=homePage+'/feeds/posts/summary?alt=json-in-script&orderby=published&max-results=999&callback=randomPosts';document.getElementsByTagName('head')[0].appendChild(random_post);
//]]>
</script>
Step -6 Note - Replace the above highlighted URL with your own blog URLStep -7 After that, save the widget, refresh your blog and see the magic.
Finished And chack Your website.
Sign up here with your email