Recent Post and Recent Comment by Javascript | For Blogger



How do I add widgets Recent Post and Recent Comments using javascript in blogger? Easy enough you just follow the following steps:

1. From the Dashboard page blog you select Layout (Layout).
2. After entering the Elements page, click Add Gadgets.
3. Then select HTML / JavaScript to be added,
4. Then input the following script code:

Code for Recent Posts:

<script style="text/javascript" src="http://enes-sc.googlecode.com/files/rc-posts.js"></script><ul>
<script style="text/javascript">
var numposts = 999;
var showpostdate = false;
var showpostsummary = false;
var numchars = 100;
var standardstyling = true;
</script>
<script src="http://nama blog kamu.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts"></script></ul>


Description of variables:
- Numposts = 999; means that 999 posts are displayed.
- Numchars = 100; meaning of characters (letters) for a summary of the displayed post 100 letters.

Recent Comments:

<script style="text/javascript" src="http://enes-sc.googlecode.com/files/rc-comments.js"></script>  <ul>
<script style="text/javascript">
var numcomments = 10;
var showcommentdate = true;
var showposttitle = true;
var numchars = 100;
var standardstyling = true;
</script>
<script src="http://nama blog kamu.blogspot.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments"></script> </ul>


Description of variables:
numcomments var = 10; means 10 comments displayed.
var numchars = 100; means the number of characters (letters) displayed comment is 100 characters.
Do Preview (Image) to see results. If it has been OK, Save the work you.

Well, finished. Good luck.
Custom Search

Post a Comment