Membuat widget Recent Comments - Hallo sahabat Didhiksty Blog, Pada Artikel yang anda baca kali ini dengan judul Membuat widget Recent Comments, kami telah mempersiapkan artikel ini dengan baik untuk anda baca dan ambil informasi didalamnya. mudah-mudahan isi postingan
Artikel Java Script, yang kami tulis ini dapat anda pahami. baiklah, selamat membaca.
Judul : Membuat widget Recent Comments
link : Membuat widget Recent Comments
Anda sekarang membaca artikel Membuat widget Recent Comments dengan alamat link https://didhiksty.blogspot.com/2016/08/membuat-widget-recent-comments.html
Judul : Membuat widget Recent Comments
link : Membuat widget Recent Comments
Membuat widget Recent Comments
lik tata letak, Buat widget baru, kemudian salin semua kode di bawah ini.
<style scoped='' type="text/css">
ul.arlinacomments{list-style:none;margin:0;padding:0}.arlinacomments li{display:block;clear:both;overflow:hidden;list-style:none;border-bottom:1px solid #e3e3e3;word-break:break-all;padding:10px 0;margin:0}.arlinacomments li .avatarImage{float:left;margin-right:10px;position:relative;overflow:hidden}.arlinacomments li img{position:relative;overflow:hidden;display:block;width:42px;height:42px}.arlinacomments li a{font-weight:700}.arlinacomments li span{margin-top:2px;color:#666;display:block;font-size:12px;line-height:1.4}
</style>
<script type="text/javascript">
//<![CDATA[
// Recent Comments
function arlinacomments(a){var e;e='<ul class="arlinacomments">';for(var t=0;numComments>t;t++){var r,o,n,i;if(t==a.feed.entry.length)break;e+="<li>";for(var d=a.feed.entry[t],s=0;s<d.link.length;s++)"alternate"==d.link[s].rel&&(r=d.link[s].href);for(var l=0;l<d.author.length;l++)o=d.author[l].name.$t,n=d.author[l].gd$image.src;n=-1!=n.indexOf("/s1600/")?n.replace("/s1600/","/s"+avatarSize+"-c/"):-1!=n.indexOf("/s220/")?n.replace("/s220/","/s"+avatarSize+"-c/"):-1!=n.indexOf("/s512-c/")&&0!=n.indexOf("http:")?"http:"+n.replace("/s512-c/","/s"+avatarSize+"-c/"):-1!=n.indexOf("blogblog.com/img/b16-rounded.gif")?"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtvrT_4p_lJryvubvA1adhmIcwCd6jb_fXHRroigl1PV4DLpLK2Op6-rO0_TjPakhSjuWL23aIsthDxajbPlC4SS8KD6VRdt4RVnVv9AIm9VmgkRpvBbndhHmQjFvkcoeC2JJuGht83Zv-/"+avatarSize+"/blogger.png":-1!=n.indexOf("blogblog.com/img/openid16-rounded.gif")?"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzoj-ioxYGCXRVe9ciqasOI1eEeDbCIm1wT4U4RE9E5ow8mPSResPEvagZWEVP8pjUFfExb-ybp35Ge3ET5Np5tQ3wQ4PM8jRr6SH6-kO8VBKN9KZxWsfYAoyH-M3dJaeMMW3BmUlv2edy/"+avatarSize+"/openid.png":-1!=n.indexOf("blogblog.com/img/blank.gif")?-1!=defaultAvatar.indexOf("gravatar.com")?defaultAvatar+"&s="+avatarSize:defaultAvatar:n,1==showAvatar&&(i=1==roundAvatar?"avatarRound":"",e+='<div class="avatarImage '+i+'"><img class="'+i+'" src="'+n+'" alt="'+o+'" width="'+avatarSize+'" height="'+avatarSize+'"/></div>'),e+='<a href="'+r+'">'+o+"</a>";var A=d.content.$t,v=A.replace(/(<([^>]+)>)/gi,"");""!=v&&v.length>characters?(v=v.substring(0,characters),v+="…",1==showMorelink&&(v+='<a href="'+r+'">'+moreLinktext+"</a>")):v=v,e+="<span>"+v+"</span>",e+="</li>"}e+="</ul>";var c="";0==hideCredits&&(c="display:block;"),e+="",document.write(e)}var numComments=3,showAvatar=!0,avatarSize=42,roundAvatar=!0,characters=40,showMorelink=!1,defaultAvatar="http://2.bp.blogspot.com/-XjxrXKBPQqs/VYcGtLWPGUI/AAAAAAAAKaQ/5jr871JIwds/s1600/default-avatar.jpg",hideCredits=!0,numComments=numComments||5,avatarSize=avatarSize||60,characters=characters||40,defaultAvatar=defaultAvatar||"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu51RAQUmzsjrNb1yWSsJZPkTG16f-PFPgey_G2bOYhg87V47CAJL9PENKm-qOodtTn7ZA92mQELjYHlUflCG5hn2QdGzMOO7hyphenhyphenb3TYonh5mdwDMzJLfP1P8iaCgaMt0JFtZ0XoMvsno8g/s1600/default-avatar.jpg",moreLinktext=moreLinktext||" More »",showAvatar="undefined"==typeof showAvatar?!0:showAvatar,showMorelink="undefined"==typeof showMorelink?!1:showMorelink,roundAvatar="undefined"==typeof roundAvatar?!0:roundAvatar,hideCredits="undefined"==typeof hideCredits?!1:roundAvatar;
//]]>
</script>
<script type="text/javascript" src="/feeds/comments/default?alt=json&callback=arlinacomments&max-results=3"></script>
Demikianlah Artikel Membuat widget Recent Comments
Sekianlah artikel Membuat widget Recent Comments kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.
Anda sekarang membaca artikel Membuat widget Recent Comments dengan alamat link https://didhiksty.blogspot.com/2016/08/membuat-widget-recent-comments.html
No comments:
Post a Comment