Kamis, 24 Mei 2012

Cara pasang widget jumlah post dan jumlah komen

1.Masuk ke blogger
2.pilih design-->> page elements
3.Pilih Add Gadget--->>HTML/Javascript
   dan masukkan kode di bawah 
<center><script style="text/javascript">function numberOfPosts(json) {document.write('Jumlah Posting: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');}</script><script src="URL blog anda/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script><script src="URL blog anda/feeds/comments/default?orderby=published&alt=json-in-script&callback=rp"></script><script style="text/javascript">function numberOfComments(json) {document.write('Jumlah Komen: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');}</script><script src="URL blog anda/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script><a href="http://teknikbuatblog.blogspot.com/2010/08/cara-pasang-widget-jumlah-post-dan.html"><small>get this</small></a></center>
 
akan terliahat seperti gambar berikut :
 
 
Share

1 komentar:

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))