Tutorial letak jumlah post dan comment
Posted on Friday, 28 October 2011, 08:11, Comment [0]





Assalamualaikum...

Lama tak update sini.Asyik mendoodle kat BLOG SANA sampai lupa blog sini.Edit pun tak habis lagi.
Tak per,kali ni kita start balik tutor ok.Hari ni tutorial letak jumlah post dan komen macam kat blog sebelah.Nak tengok,pergi sana ye..


Dashboard-Design-Page Element-Add a Gadget-HTML/Javascripts.Dalam ruangan Content isi code ni:


<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">get this</a></small>


Save.

Labels:

Navigates


Majesty|Item|Alien|Post|Follow


Cakap-cakap


nice words please...


Sing A Song



Creditors

Skin By : Hafiz Zulkafly
Device : Adobe Photoshop CS5
Others : Pakcik Google ImgUr
Best View : Using Google Chrome


Time Machine

Copyright© 2011 : Hafiz Zulkafly. All Right Reserved.