Sabtu, 13 Maret 2010

Cara membuat komentar terbaru di blog

top custom html 2Kompinter Membahas tutirial journal untuk maternity blogger state dengan cara yang Unik dengan memasang komentar terbaru kita tahu Siapa yang baru komentar.Sebaiknya cara memasang widget ini di motion forbid samping karena jika memasang di tempet lain pasti akan menggangu mari kita segera memasang :Tata Letak -- Tambah Gadget -- HTMLLalu double adhesive Kode HTML ini :<ul><script style="text/javascript">function showrecentcomments(json) {for (var i = 0; i < 5; i++) {var entry = json.feed.entry[i];var ctlink;if (i == json.feed.entry.length) break;for (var k = 0; k < entry.link.length; k++) {if (entry.link[k].rel == 'alternate') {ctlink = entry.link[k].href;break;}}ctlink = ctlink.replace("#", "#comment-");var ptlink = ctlink.split("#");ptlink = ptlink[0];var txtlink = ptlink.split("/");txtlink = txtlink[5];txtlink = txtlink.split(".html");txtlink = txtlink[0];var pttitle = txtlink.replace(/-/g," ");pttitle = pttitle.link(ptlink);if ("content" in entry) {var interpret = entry.content.$t;}elseif ("summary" in entry) {var interpret = entry.summary.$t;}else var interpret = "";var re = /<\S[^>]*>/g;comment = comment.replace(re, "");document.write('<li>');document.write('<a href="' + ctlink + '">' + entry.author[0].name.$t + '</a>');document.write(' on ' + pttitle);document.write('<br/>');if (comment.length < 100) {document.write(comment);}else{comment = comment.substring(0, 100);var quoteEnd = comment.lastIndexOf(" ");comment = comment.substring(0, quoteEnd);document.write(comment + '...<a href="' + ctlink + '">(more)</a>');}}document.write('</li>');document.write('<div style="font-size:75&percnt;;text-align:center"></div>');}</script><script src=http://kompinter.blogspot.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments></script></ul><noscript>You requirement to enable JavaScript to feature this.</noscript>Ganti Tulisan kompinter dengan Alamat journal kamu dan angka  5 Adalah jumlah Komentar terbaru yang akan di tampilkan.Jangan pernah bosan Mampir di kompinter dan Jangan lupa Komen ya!!!!bottom custom html 3
Technorati

0 komentar:

Posting Komentar