random post

Selasa, 03 Juli 2012

Widget Random Post Berjalan



Contohnya ada di atas postingan blog ini.

bagi yang berminat begini caranya:

 
1. Login ke akun blogger anda
2. Pilih Rancangan 
3. Klik Tambah Gadget
4. Pilih HTML/JavaScript
5. Masukan kode HTML berikut ini:



<!-- Alphabetical/chronological Post Title Listing with comment count Start -->
<script type="text/javascript">
function getYpipeTL(feed) {
document.write('<marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="
5">');
var i;
for (i = 1; i < feed.count ; i++)
{
var href = "'" + feed.value.items[i].link + "'";
var pTitle = feed.value.items[i].title + "</a> | ";
var pComment = " \(" + feed.value.items[i].commentcount + " comments\)";
var pList = "</a>" + "<a href="+ href + '">' + pTitle;
document.write(pList);
document.write(pComment);
document.write('</a></li>');
}
document.write('</marquee>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?
YourBlogUrl=
http://abcdefghizkia.blogspot.com
&Order=alphabet
&_id=401e43055731c1a29f1e1d3eb5e8e13f
&_callback=getYpipeTL
&_render=json"
type="text/javascript"></script>
<!-- Alphabetical Post Title Listing End -->


6 . Simpan 

Catatan :
5 adalah kecepatan berjalannya tulisan

Ganti http:abcdefghizkia.blogspot.com
dengan URL blog kamu sendiri




3 komentar:

Unknown mengatakan...

sangat membantu... :)

Unknown mengatakan...

thx yaa

Xavi mengatakan...

okok,,
sama-sama..

Related Posts Plugin for WordPress, Blogger...