How To Add Random Posts Widget to Blogger

How To Add Random Posts Widget to Blogger - welcome to our blog Techno Live, now we will discuss information about the How To Add Random Posts Widget to Blogger, our admins on this blog has been around to collect information you are looking for so that we usakan to display complete information for you, and in this blog, you can also search for other information, ok please continue reading may be easily understood:

This is about : How To Add Random Posts Widget to Blogger
And this article : How To Add Random Posts Widget to Blogger

You can also see our article on:


How To Add Random Posts Widget to Blogger

Follow the easy steps below to add Random Posts Widget to your blog.

1.Log in to your dashboard--> layout- ->Page Elements

2.Click on Add a Gadget on the sidebar.

3.Select HTML/Javascript and add the javascript code given below and click save.

<div id="myLuckyPost"></div> 
<script type="text/javascript"> function showLucky(root){ var feed = root.feed; var entries = feed.entry || []; var entry = feed.entry[0]; for (var j = 0; j < entry.link.length; ++j){if (entry.link[j].rel == 'alternate'){window.location = entry.link[j].href;}}} function fetchLuck(luck){ script = document.createElement('script'); script.src = '/feeds/posts/summary?start-index='+luck+'&max-results=1&alt=json-in-script&callback=showLucky'; script.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); } function feelingLucky(root){ var feed = root.feed; var total = parseInt(feed.openSearch$totalResults.$t,10); var luckyNumber = Math.floor(Math.random()*total);luckyNumber++; a = document.createElement('a'); a.href = '#random'; a.rel = luckyNumber; a.onclick = function(){fetchLuck(this.rel);}; a.innerHTML = 'Are ya feeling lucky, punk?'; document.getElementById('myLuckyPost').appendChild(a); } </script> 
<script src="/feeds/posts/summary?max-results=0&alt=json-in-script&callback=feelingLucky"></script>


Articles How To Add Random Posts Widget to Blogger finished we discussed

A few of our information about the How To Add Random Posts Widget to Blogger, I hope you can exploit carefully

No've You've finished reading an article on How To Add Random Posts Widget to Blogger and many articles about modern home in our blog this, please read it. and url link of this article is https://liveeconcerts.blogspot.com/2015/10/how-to-add-random-posts-widget-to.html Hopefully discussion articles on provide more knowledge about the world of tech gadgets.

Tag :

0 Response to "How To Add Random Posts Widget to Blogger"

Post a Comment