Headlines News :
Home » » Membuat Widget Recent Comment Menggunakan Spoiler

Membuat Widget Recent Comment Menggunakan Spoiler

Written By Unknown on Thursday, January 12, 2012 | 5:16:00 AM

Kali ini saya akan berbagi tentang cara Membuat Widget Recent Comment Menggunakan Spoiler, cara ini lebih menghemat tempat di sidebar blog. Selain menggunakan Spoiler Sobat juga dapat membuat Recent Comment menggunakan scroll.
Berikut cara Membuat Widget Spoiler Recent Comment :
  • Login ke blogger, klik Design > Page Element.
    Membuat Widget Spoiler Recent Comment
  • Klik Add a Widget dan pilih HTML/Javascript.
    Membuat Widget Spoiler Recent Comment
  • Lalu letakkan kode berikut di area konten widget :
    Kode Script :
    <div style="margin: 1px;"><div class="smallfont" style="margin-bottom: 2px;"><input onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Close'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Recent Comments'; }" style="font-size: 11px; margin: 0px; padding: 0px; width: 150px;" type="button" value="Recent Comments" /></div> <div class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; text-align: left;"> <div style="display: none;  height: 250px; overflow: auto;">
    <script type="text/javascript" src="http://html-scripts.googlecode.com/files/comments.js"></script>
    <script type="text/javascript">
    var numcomments = 10;
    var showcommentdate = false;var
    showposttitle = true;var
    numchars = 100;var
    standardstyling = true;var
    showfooter = true;
    </script>
    <script type="text/javascript" src="http://m4d13.blogspot.com/feeds/comments/default?alt=json-in-script&amp;callback=showrecentcomments"></script>
    </div></div></div>
    Silakan ganti m4d13.blogspot.com dengan alamat blog Sobat.
  • Terakhir klik Save.
    Membuat Widget Spoiler Recent Comment
    Selesai...
    Berikut contoh hasilnya :
Selamat mencoba...
Sumber : Membuat Widget Spoiler Recent Comment
Share this post :

Post a Comment

 
Support : Creating Website | Johny Template | Mas Blogger
Copyright © 2016. MEDIA BLOGSPOT - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger