|
Project Information
|
function hyoga(json) { document.write(' <ilayer clip="0,0,270,300" width="270" height="300">'); document.write('<layer width="270" height="300" bgcolor="lightyellow">'); document.write(' '); for (var i = 0; i <= json.feed.openSearch$totalResults.$t - 1; i++) { var entry = json.feed.entryi; var posttitle = entry.title.$t; var posturl; if (i == json.feed.entry.length) break; for (var k = 0; k <= entry.link.length - 1; k++) { if (entry.linkk.rel == 'alternate') { posturl = entry.linkk.href; break; } } posttitle = posttitle.link(posturl); var readmorelink = "(more)"; readmorelink = readmorelink.link(posturl); var postdate = entry.published.$t; var cdyear = postdate.substring(0,4); var cdmonth = postdate.substring(5,7); var cdday = postdate.substring(8,10); var monthnames = new Array(); monthnames1 = "Jan"; monthnames2 = "Feb"; monthnames3 = "Mar"; monthnames4 = "Apr"; monthnames5 = "May"; monthnames6 = "Jun"; monthnames7 = "Jul"; monthnames8 = "Aug"; monthnames9 = "Sep"; monthnames10 = "Oct"; monthnames11 = "Nov"; monthnames12 = "Dec"; if ("content" in entry) { var postcontent = entry.content.$t; } else if ("summary" in entry) { var postcontent = entry.summary.$t; } else var postcontent = ""; var re = /<\S[^>]>/g; postcontent = postcontent.replace(re, ""); document.write(''); document.write(posttitle); document.write(''); if (showpostdate == true) document.write(' if (showpostsummary == true) { document.write(' document.write(postcontent); } else { postcontent = postcontent.substring(0, numchars); var quoteEnd = postcontent.lastIndexOf(" "); postcontent = postcontent.substring(0,quoteEnd); document.write(postcontent + '...' + readmorelink); document.write(' } } document.write(' Unknown end tag for </div> '); document.write('Unknown end tag for </layer> '); document.write('Unknown end tag for </ilayer> ');} |