Assalamualaikum. Hai korang. Harini nak share koding HTML bagi recent post dan recent comment. Dimana korang boleh letak kod ni dalam horizontal tab menu dan drop down menu korang tu. Jom copy and paste.
Kod untuk Recent Post
<script style='text/javascript' src='http://blogergadgets.googlecode.com/files/recentpostswidgetv1.js'></script><script style='text/javascript'>var numposts = 5;var showpostdate = true;var showpostsummary = true;var numchars = 100;</script><script src='http://URL KORANG.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts'></script>
Kod untuk Recent Comments
<script style="text/javascript" src="http://sites.google.com/site/testingsahaja/recentcomments.js"></script><script style="text/javascript">var numcomments = 10;var showcommentdate = false;var showposttitle = false;var numchars = 40;</script><script src="http://URL KORANG.blogspot.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments"></script>
Korang boleh la copy and paste kod ni dalam Add Widget/HTML widget korang ye. Korang gantikan URL KORANG tu dengan url blog korang okey :) .Save & Done.
Sumber : Maribinablog
0 Flowers:
Post a Comment