08 March 2009

Membuat Random Post | How to Make Random Post

Random Post is a widget that showing a random post from our blog. It’s will assist visitor to find another post that (maybe) have not read before.

I’ll give you an easy and quick tips for making it:
* Log in to http://blogger.com to enter the Control Panel
* Click Layout (layout)
* Add The Gadget
* Add the HTML / Javascript



<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=022620be5e6f6a66359d63edb5055e66&url=http%3A%2F%2Ftrik-tipsblog.blogspot.com&num=10" type="text/javascript"></script>
<small>Widget edited by <a href="http://trik-tipsblog.blogspot.com/2009/03/how-to-make-random-post.html">Trik-tips Blog</a></small>
</body>

* Paste Then the script above is
* Save Changes
* Done

Note :
* the number 10 indicates the number of random post that is displayed. Please change the number according to the number of random post
* trik-tipsblog.blogspot.com replace with the name of your blog

No comments:

Post a Comment