الطريقه الصحيحه لاضافة سلايدرشو لمدونات بلوجر باحترافيه
<script>
imgr = new Arrayundefined);
showRandomImg = true;
aBold = true;
summaryPost = 150;
numposts1 = 6;
label1 = "اضافات بلوجر";
function removeHtmlTagundefinedstrx,chop){var s=strx.splitundefined"<");forundefinedvar i=0;i<s.length;i++){ifundefineds[i].indexOfundefined">")!=-1){s[i]=s[i].substringundefineds[i].indexOfundefined">")+1,s[i].length)}}s=s.joinundefined"");s=s.substringundefined0,chop-1);return s}
function showrecentposts1undefinedjson){j=undefinedshowRandomImg)?Math.floorundefinedundefinedimgr.length+1)*Math.randomundefined)):0;img=new Arrayundefined);forundefinedvar i=0;i<numposts1;i++){var entry=json.feed.entry[i];var posttitle=entry.title.$t;var pcm;var posturl;ifundefinedi==json.feed.entry.length)break;forundefinedvar k=0;k<entry.link.length;k++){ifundefinedentry.link[k].rel=='alternate'){posturl=entry.link[k].href;break}}forundefinedvar k=0;k<entry.link.length;k++){ifundefinedentry.link[k].rel=='replies'&&entry.link[k].type=='text/html'){pcm=entry.link[k].title.splitundefined"")[0];break}}
if undefined"content" in entry) {
var postcontent = entry.content.$t;}
else
if undefined"summary" in entry) {
var postcontent = entry.summary.$t;}
else var postcontent = "";
postdate = entry.published.$t;
ifundefinedj>imgr.length-1) j=0;
img[i] = imgr[j];
s = postcontent ; a = s.indexOfundefined"<img"); b = s.indexOfundefined"src="",a); c = s.indexOfundefined""",b+5); d = s.substrundefinedb+5,c-b-5);
ifundefinedundefineda!=-1)&&undefinedb!=-1)&&undefinedc!=-1)&&undefinedd!="")) img[i] = d;
var month=[1,2,3,4,5,6,7,8,9,10,11,12];var month2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var day=postdate.splitundefined"-")[2].substringundefined0,2);var m=postdate.splitundefined"-")[1];var y=postdate.splitundefined"-")[0];forundefinedvar u2=0;u2<month.length;u2++){ifundefinedparseIntundefinedm)==month[u2]){m=month2[u2];break;
}}
var daystr = day+ ' ' + m + ' ' + y ;
var trtd = '<div class="contentdiv"><div class="alwansf"><a href="'+posturl+'"><img width="617" height="385" class="alignnone" src="'+img[i]+'"/></a><div class="sliderPostInfo"></div></div><div class="alwanip"><h6><a href="'+posturl+'">'+posttitle+'</a></h6><div class="alwand" >'+daystr+'</div><p>'
+removeHtmlTagundefinedpostcontent,summaryPost)+'...</p></div></div>';
document.writeundefinedtrtd);
j++;
}}
</script>