1. Log in blogger account
2. Klik "Layout" link.
3. Klik "Add a Gadget"
4. Klik "HTML/JavaScript" button.
5. Copy code di bawah ni, paste dalam di ruangan "HTML/JavaScript"
<script style="text/javascript">
function numberOfPosts(json) {
document.write('Total Posts: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
function numberOfComments(json) {
document.write('Total Comments: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
</script>
<ul><li><script src="http://yourblog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script></li>
<li><script src="http://yourblog.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></li></ul>
<center><span ><a href="http://realtrix.blogspot.com/" rel=”dofollow”>Get This Widget</a></span></center>
6) Jangan lupa gantikan "http://yourblog.blogspot.com/" dengan url blog anda
7) save
tiada sambungan, tak perlu klik read more
0 comments:
Post a Comment