Tutorial 40 : Cara Letak Total Post dan Total Comment Di Blog


Hai semua, hari ni nak tunjuk cara-cara untuk letak total post dan total comment blog korang. Lets start

1. Dashboard > Layout  > Add a Gadget > Html/JavaScript

2. Copy code ini :

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

3.Lepas tu paste dekat Html/JavaScript tu ..

4. Lepas tu , link warna MERAH tu , korang tukarkan dengan URL link blog korang.

5. SAVE .

Selamat Mencuba .

You Might Also Like

3 comment

Terima kasih :)

728 x 90