14 October 2012

Tutorial : Jumlah Bilangan Post & Komen

Photobucket


1. Dashboard > Layout > Add a gadget > HTML/Javascript
2. Copy code di bawah & paste dalam HTML/Javascript
 <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>
<small><a href="http://tutorialuntukblog.blogspot.com/2011/01/ketahui-jumlah-post-dan-jumlah-komen.html" target="_blank"></a></small>
3. Save

No comments:

 
Copyright© All Rights Reserved by Khairunnisa Hassan