Cari Blog Ini

Diberdayakan oleh Blogger.
Sabtu, 24 Oktober 2015

How To Add Random Posts Widget to Blogger

How To Add Random Posts Widget to Blogger - welcome to the blog Software Gadget the end of this much calm product information launcing, yes every day there are always products that are removed from various brands, both physical hardware products and software that need new knowledge to use it, well now we will discuss first about How To Add Random Posts Widget to Blogger as you search we have collected a lot of data to make this information as complete as possible for you, please read:

Articles : How To Add Random Posts Widget to Blogger
full Link : 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>



so much information How To Add Random Posts Widget to Blogger

hopefully the information How To Add Random Posts Widget to Blogger that we provide can be useful for you in the set of technology products that fit your daily needs,

have just read the article titled How To Add Random Posts Widget to Blogger if you feel useful information and you want to bookmark or share please use the link https://ramblingsofker.blogspot.com/2015/10/how-to-add-random-posts-widget-to.html and do not forget to go back to this blog if you want to know information about the latest gadgets.

Tag :
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : How To Add Random Posts Widget to Blogger

0 komentar:

Posting Komentar