How to put or make easy a random post on the blog page (sidebar). making the same principles by how to make a recent post or recent comment, the article lists only difference that emerged at random, or randomly when page was loaded. How? Follow the instructions below:
1.Sign in the Blogger in your account
2.Masuk to Layout>> Add New Page Element> HTML / JavaScript
3. Copy paste the code below:
Replace the red with your Blog Url and blue print is how much artichel to show on your widget Random Post, than Save
1.Sign in the Blogger in your account
2.Masuk to Layout>> Add New Page Element> HTML / JavaScript
3. Copy paste the code below:
<div style="text-align:left !important;">
<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ul style="text-transform: capitalize;">');
var i;
for (i = 0; i < obj.count ; i++)
{
var href = "'" + obj.value.items[i].link + "'";
var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write('</ul>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=ac99ebe0691031008a48d750fdbeaa67&url=http%3A%2F%2FBlogName.blogspot.com&num=15" type="text/javascript"></script><br/><small><a href="http://www.kriep2.co.cc/2009/08/easy-make-random-post-blogspot.html">Widget By Kriep2</a></small></div>
<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ul style="text-transform: capitalize;">');
var i;
for (i = 0; i < obj.count ; i++)
{
var href = "'" + obj.value.items[i].link + "'";
var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write('</ul>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=ac99ebe0691031008a48d750fdbeaa67&url=http%3A%2F%2FBlogName.blogspot.com&num=15" type="text/javascript"></script><br/><small><a href="http://www.kriep2.co.cc/2009/08/easy-make-random-post-blogspot.html">Widget By Kriep2</a></small></div>
Replace the red with your Blog Url and blue print is how much artichel to show on your widget Random Post, than Save
Related Article for this post :
3 comments:
Yuhuu...nice info friend,
I will to try
nice posting for this site...i liked it,added more information it will better...
Bathmate
this is an outstanding blog
the way u write is fabolous.
Thanks a lot
http://www.webroyalty.com
Post a Comment