Tutorial 40 : Cara Letak Total Post dan Total Comment Di Blog
- September 09, 2016
- By alyachan
- 3 Comments
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 .
3 comment
singgah pagi jumaat
ReplyDeleteTutorial yg menarik lya..
ReplyDeletenk cuba jap la nk tgk berapa tah komen yg ada dkt blog tu.. hehe.
nice sharing sis... :)
ReplyDeleteTerima kasih :)