Tutorial letak jumlah post dan jumlah comment di blog

January 7, 2012


macam biasa lah.
g dashboard-design-add gadget-html/javascript
copy code di bawah dan paste dlm html/javascript tadi k ?

<center><script style="text/javascript">
function totalPosts(json) {
document.write('Total Posts: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
function totalComments(json) {
document.write('Total Comments: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
</script>
<script src=" /feeds/posts/default?alt=json-in-script&callback=totalPosts"></script>
<script src=" /feeds/comments/default?alt=json-in-script&callback=totalComments"></script></center>




done dude !

Post a Comment

Latest Instagrams

© Anis Nadhilah. Design by Fearne.