Social Icons

Photobucket Photobucket Photobucket Photobucket Photobucket Photobucket

Site Info

Saturday, 21 March 2009

Total Post And Comments Counter Widget

Total Comments : 3099
Total Posts : 1233

Bagaimana membuat Total Post And Comments Counter Widget. Caranya Sangat mudah, anda boleh ikut langkah-langkah yang saya tunjukkan ini. Terima Kasih kepada Tips and Tricks Blog kerana mengajar saya cara membuat Total Post And Comments Counter Widget .

1) Klik pada Layout, kemuadian
2) Klik pada Add a Gadget
3) Copy dan Pastekan Codes dibawah di HTML/Javascript






<script style="text/javascript">
function showpostcount(json) {
document.write('Total Posts : <b>' + parseInt(json.feed.openSearch$totalResults.$t,10) + '</b><br>');}</script>
<script src="http://yourblog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script>


<script style="text/javascript"></script>
<script style="text/javascript">
function numberOfComments(json) {
document.write('Total Comments : <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');}</script>
<script src="http://yourblog.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script>




4) Gantikan Codes Oren dengan nama blog anda.
5) Klik Save

Selamat Mencuba.

If you enjoyed this post, make sure you subscribe to my RSS feed! and Subscribe to Info To You by Email

Your comment will be highly appreciated.So Comment laa.

Share/Save/Bookmark

0 Comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...