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>
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.
0 Comments:
Post a Comment