- Klik Rancangan > Elemen Laman > Tambah Gadget.
- Pilih HTML/JavaScript.
- Copy kode di bawah ini dan paste di kolom yang ada.
Untuk total postingan, copy kode berikut.
<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://72bidadari.blogspot.com/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script>
function showpostcount(json) {
document.write('Total Posts : <b>' + parseInt(json.feed.openSearch$totalResults.$t,10)
+ '</b><br>');}</script>
<script src="http://72bidadari.blogspot.com/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script>
Untuk total komentar, copy kode berikut.
<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://72bidadari.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script>
<script style="text/javascript">
function numberOfComments(json) {document.write('Total Comments : <b>' + json.feed.openSearch$totalResults.$t +'</b><br>');}</script>
<script src="http://72bidadari.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script>
- Ganti tulisan berwarna merah dengan URL anda sendiri.
- Kemudian klik simpan.
0 komentar:
Posting Komentar