Menampilkan Total Post dan Total Komentar





Langsung aja Copas kode berikut lalu pastekan ke HTML jabva script :
<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://ahmadrijal-blog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script>

TOTAL KOMENTAR
 
<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://ahmadrijal-blog.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script>
Note :

  • Kode yang berwarna biru ganti dengan URL blog sobat sendir !

0 Coment "Menampilkan Total Post dan Total Komentar", Baca atau Masukkan Komentar

Posting Komentar