| imgr = new Array(); |
| imgr[0] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviyH6lE9QZqBv_wMKNvUv9C5Y0nXevcldwmPJqrIFM3C63rSY2-c8lg_FXwSwxwpo0neKbqm4heB4iTT68hwaoQGZJ56TsOhJW7RpwBMxQw3zKWo026_66K0dPwmcKY8y-kZgwFs937M/s300/avariel-no-end-in-sight%252528demo%252529-20110719103608.jpg"; |
| showRandomImg = true; |
| aBold = true; |
|
|
| summaryPost = 140; |
| summaryPost1 = 120; |
| summaryPost2 = 120; |
| summaryPost4 = 420; |
| summaryTitle = 25; |
|
|
| numposts = 6; |
| numposts1 = 2; |
| numposts2 = 5; |
| numposts3 = 4; |
| numposts4 = 1; |
| numposts5 = 9; |
| numposts6 = 6; |
| numposts7 = 20; |
| numposts8 = 6; |
| numposts12 = 10; |
| |
| function showrecentposts7(json) { |
| |
| j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0; |
| img = new Array(); |
| document.write('<ul class="clearfix">'); |
| for (var i = 0; i < numposts7; i++) { |
| var current = $(this); |
| var entry = json.feed.entry[i]; |
| var posttitle = entry.title.$t; |
| var postPrice = $('.post-price',this).text(); |
| var pcm; |
| var posturl; |
| if (i == json.feed.entry.length) break; |
| for (var k = 0; k < entry.link.length; k++) { |
| if (entry.link[k].rel == 'alternate') { |
| posturl = entry.link[k].href; |
| break; |
| } |
| } |
| |
| for (var k = 0; k < entry.link.length; k++) { |
| if (entry.link[k].rel == 'replies' && entry.link[k].type == 'text/html') { |
| pcm = entry.link[k].title.split(" ")[0]; |
| break; |
| } |
| } |
| |
| if ("content" in entry) { |
| var postcontent = entry.content.$t;} |
| else |
| if ("summary" in entry) { |
| var postcontent = entry.summary.$t;} |
| else var postcontent = ""; |
| |
| postdate = entry.published.$t; |
| |
| if(j>imgr.length-1) j=0; |
| img[i] = imgr[j]; |
| |
| s = postcontent ; 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!="")) img[i] = d; |
| |
| |
| var trtd = '<li class="car"><div class="thumb"><a class="clearfix" href="'+posturl+'"><img class="alignnone" src="'+img[i]+'"/></div><div class="info"><p>'+posttitle+'</p></a><p class="morePhoto"></p></div></li>'; |
| |
| document.write(trtd); |
| |
| j++; |
| } |
| |
| document.write('</ul>'); |
| } |
|
|
| //]]> |
| </script> |