Copyrights @ Journal 2014 - Designed By Templateism - SEO Plugin by MyBloggerLab

Selasa, 26 Juni 2012

Cara Membuat Recent Comment menggunakan scroll

Share
Cara Membuat Widget Recent Comment Menggunakan Spoiler, cara ini lebih menghemat tempat di sidebar blog. Selain menggunakan Spoiler Sobat juga dapat membuat
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 : 



<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://ihwan-arifandi..blogspot.com/feeds/comments/default?alt=json-in-script&amp;callback=showrecentcomments"></script>
</div></div></div>
Silakan ganti ihwan-arifandi.blogspot.com dengan alamat blog Sobat.
  • Terakhir klik Save.
Membuat Widget Spoiler Recent Comment
Selesai...

1 comments: