مواضيع متشابهه
البحث
</head>
فوقه
<b:if cond='data:blog.pageType == "item"'>
<style type='text/css'>
#related-posts{float:left;width:auto;}
#related-posts a{border-right: 1px dotted #eaeaea;}
#related-posts h4{margin-top: 10px;background:none;font:18pxOswald;padding:3px;color:#999999; text-transform:uppercase;}
#related-posts .related_img {margin:5px;border:2px solid#f2f2f2;object-fit:cover;width:110px;height:100px;-webkit-border-radius:5px;-moz-border-radius: 5px; border-radius: 5px; }
#related-title{color:#333;text-align:center;text-transform:capitalize;padding: 0px5px 10px;font-size:12px;width:110px; height: 40px;}
</style>
<script type='text/javascript'>
//<![CDATA[
var relatedTitles=new Array();var relatedTitlesNum=0;varrelatedUrls=new Array();var thumburl=new Array();functionrelated_results_labels_thumbs(json){for(vari=0;i<json.feed.entry.length;i++){varentry=json.feed.entry[i];relatedTitles[relatedTitlesNum]=entry.title.$t;try{thumburl[relatedTitlesNum]=entry.gform_foot.url}catch(error){s=entry.content.$t;a=s.indexOf("<img");b=s.indexOf("src=\"",a);c=s.indexOf("\"",b+5);d=s.substr(b+5,c-b-5);if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")){thumburl[relatedTitlesNum]=d}elsethumburl[relatedTitlesNum]='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPqVjVmsCxPnF72PSysANx6Xvt2IfJ6WdGlYS2xmiOukVHMKyRmgWO-kuy-sXiNnm-UWccX1SuOJKYMqTt7MXi7jL2dQfaeKN5eKNKvzHdWNdk6V4_wPbsbWJgRPyQI6uD7hNGrb2cMFNM/s1600/no-thumbnail.png'}if(relatedTitles[relatedTitlesNum].length>35)relatedTitles[relatedTitlesNum]=relatedTitles[relatedTitlesNum].substring(0,35)+"...";for(vark=0;k<entry.link.length;k++){if(entry.link[k].rel=='alternate'){relatedUrls[relatedTitlesNum]=entry.link[k].href;relatedTitlesNum++}}}}functionremoveRelatedDuplicates_thumbs(){var tmp=new Array(0);var tmp2=newArray(0);var tmp3=new Array(0);for(vari=0;i<relatedUrls.length;i++){if(!contains_thumbs(tmp,relatedUrls[i])){tmp.length+=1;tmp[tmp.length-1]=relatedUrls[i];tmp2.length+=1;tmp3.length+=1;tmp2[tmp2.length-1]=relatedTitles[i];tmp3[tmp3.length-1]=thumburl[i]}}relatedTitles=tmp2;relatedUrls=tmp;thumburl=tmp3}functioncontains_thumbs(a,e){for(var j=0;j<a.length;j++)if(a[j]==e)returntrue;return false}function printRelatedLabels_thumbs(){for(vari=0;i<relatedUrls.length;i++){if((relatedUrls[i]==currentposturl)||(!(relatedTitles[i]))){relatedUrls.splice(i,1);relatedTitles.splice(i,1);thumburl.splice(i,1);i--}}varr=Math.floor((relatedTitles.length-1)*Math.random());vari=0;if(relatedTitles.length>0)document.write('<h4>'+relatedpoststitle+'</h4>');document.write('<divstyle="clear:both;"/>');while(i<relatedTitles.length&&i<20&&i<maxresults){document.write('<astyle="text-decoration:none;margin:0 4px 10px0;float:left;');if(i!=0)document.write('"');elsedocument.write('"');document.write(' href="'+relatedUrls[r]+'"><imgclass="related_img" src="'+thumburl[r]+'"/><br/><divid="related-title">'+relatedTitles[r]+'</div></a>');if(r<relatedTitles.length-1){r++}else{r=0}i++}document.write('</div>');relatedUrls.splice(0,relatedUrls.length);thumburl.splice(0,thumburl.length);relatedTitles.splice(0,relatedTitles.length)}
//]]>
</script>
</b:if>
البحث
Related Posts with Thumbnails Code Start
<div class='post-footer'>
فوقه الثاني او الاخير
<b:if cond='data:blog.pageType == "item"'>
<div id='related-posts'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast != "true"'>
</b:if>
<script expr:src='"/feeds/posts/default/-/" +data:label.name +"?alt=json-in-script&callback=related_results_labels_thumbs&max-results=5"'type='text/javascript'/></b:loop>
<script type='text/javascript'>
var currentposturl="<data:post.url/>";
var maxresults=6;
var relatedpoststitle="<b>مواضع اخره مشابهه :</b>";
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs();
</script>
</div><div class='clear'/><div style="font-size: 9px;float: right;margin: 5px;"></div>
</b:if>
وسلامتكم
0 التعليقات :
إرسال تعليق