Selamat datang di Syam’s Blog
Jumpa lagi di Syam’s Blog pada kesempatan kali ini saya akan berbagi sedikit tips mudah dan cepat membuat random post berjalan.
Baca :
Random post berfungsi untuk menampilkan artikel-artikel secara acak agar dapat di lihat dengan mudah artikel terdahulu.
Berikut langkah-langkahnya :
1. Login ke blogger
3. Pilih tata letak
4. Klik Tambah gadget.
5. Pilih HTML/JavaScript
6. Masukkan kode berikut
<!-- 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="1">');
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://syamsblog95.blogspot.com&Order=alphabet
&_id=401e43055731c1a29f1e1d3eb5e8e13f
&_callback=getYpipeTL
&_render=json"
type="text/javascript"></script>
<!-- Alphabetical Post Title Listing End -->
<script type="text/javascript">
function getYpipeTL(feed) {
document.write('<marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="1">');
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://syamsblog95.blogspot.com&Order=alphabet
&_id=401e43055731c1a29f1e1d3eb5e8e13f
&_callback=getYpipeTL
&_render=json"
type="text/javascript"></script>
<!-- Alphabetical Post Title Listing End -->
7. Ganti http://syamsblog95.blogspot.com dengan URL blog anda.
8. 1 adalah kecepatan teks yang akan berjalan, sesuaikan dengan kebutuhan anda.
9. Simpan dan lihat hasilnya..
Baca juga :
Posted by 11:52 PM and have
, Published at