/*
* CONTENT LIST
*
* Created by : Copycat91
* On July 29th 2009
* Website : http://infotentangblog.blogspot.com/
* Original post : http://infotentangblog.blogspot.com/2009/07/membuat-recent-comments.html
*
* Special thanks to :
* *) http://www.blogger.com for the free blog hosting
* *) http://buzz.blogger.com for the tutorial to convert feed->json
* *) NetBeans IDE 6.5 for the free IDE
* *) And other tutorials about HTML, javascript, json, etc I have read
*/
document.write("
Recent comments
");
function dateFormat(rdate){ // rdate -> yyyy-mm-dd
var month = new Object;
month["01"] = "Januari";
month["02"] = "Februari";
month["03"] = "Maret";
month["04"] = "April";
month["05"] = "Mei";
month["06"] = "Juni";
month["07"] = "Juli";
month["08"] = "Agustus";
month["09"] = "September";
month["10"] = "Oktober";
month["11"] = "Nopember";
month["12"] = "Desember";
return rdate.substr(8,2) + " " + month[rdate.substr(5,2)] + " " + rdate.substr(0,4);
}
function getCommentHref(entry){
var links = entry.link;
for(var i=0; i";
s += ""+comment.author+" ";
s += "pada " + comment.date + " : ";
s += "" + comment.title + "
";
s += "";
}
if(comments.length == 0){s = "Belum ada komentar";}
if(include_link){
s += "";
}
document.getElementById("rc_area").innerHTML = s;
}
function stripHTML(s) {
var c;
var intag = false; var newstr = "";
for(var i=0; i"){intag = false;}
if(c == ">"){newstr += " ";}
else if(!intag){newstr += c;}
}
return newstr;
}