كود اخراج جميع مشاركاتك التى تم التعليق عليها

HTML/JavaScript قم بالاضافه



المثال


https://sfehthayef.blogspot.com/p/blog-page_87.html


<script type='text/javascript'>

var numComments = 5;

var characters = 60;

</script>

<script type='text/javascript'>

//<![CDATA[

var numComments=numComments||5,characters=characters||40;

function recent_comments(tb){var commentsHtml;commentsHtml='<ul
id="recent_comments">';for(var i=0;i<numComments;i++){var
commentlink,authorName;if(i==tb.feed.entry.length)break;commentsHtml+="<li>";var
entry=tb.feed.entry[i];for(var
l=0;l<entry.link.length;l++){if(entry.link[l].rel=='alternate'){commentlink=entry.link[l].href}}for(var
a=0;a<entry.author.length;a++){authorName=entry.author[a].name.$t}commentsHtml+="<strong><a
href=\""+commentlink+"\"
title=\""+authorName+"\">"+authorName+"</a></strong>";var
commHTML=entry.content.$t;var
commBody=commHTML.replace(/(<([^>]+)>)/ig,"");if(commBody!=""&&commBody.length>characters){commBody=commBody.substring(0,characters);commBody+="
&hellip;"}else{commBody=commBody}commentsHtml+=" -
";commentsHtml+="<span>"+commBody+"</span>";commentsHtml+="</li>"}commentsHtml+='</ul>';document.write(commentsHtml)}

//]]>

</script>

<script>

document.write("<script
src=\"/feeds/comments/default?alt=json&callback=recent_comments\"><\/script>");

</script>


وسلامتكم

إرسال تعليق

أحدث أقدم