' + this.comment + ' ';
if (this.isnew) {
html += ' ';
}
if (modperm) {
html += ' ';
html += '';
}
if (delperm) {
html += ' ';
}
html += '';
html += '
';
html += '
' + this.dateStr + '
';
html += '
';
html += '
';
// 꼬리말 꼬리말 레이어
html += '
';
html += '
';
html += '
';
html += '
';
html += ' 꼬리말에 코멘트 쓰기';
html += '
';
html += '
꼬리말에 코멘트란? 꼬리말에 대한 답변입니다.
';
html += ' ';
html += '현재 0/최대 300byte (한글 150자, 영문 300자) ';
html += '
';
html += '';
html += '';
html += '
';
html += '
';
html += '
';
html += '
';
html += '
';
html += '
';
return html;
};
this.renderRowCommentComment = function() {
var html = '';
var mine = 'pNbjH7BH2ig0' == this.e_userid;
var modperm = mine;
var delperm = mine;
html += '
';
html += '' + this.comment + ' ';
if (this.isnew) {
html += ' ';
}
if (modperm) {
html += ' ';
html += '';
}
if (delperm) {
html += '';
}
html += '
';
html += '
' + this.dateStr + '
';
html += '
';
html += '
';
html += '
';
html += '
';
return html;
};
this.renderRowCommentDelete = function() {
var html = '';
html += '
꼬리말이 삭제되었습니다.
';
return html;
}
this.viewMember = function (obj) {
showSideView(obj, this.e_userid, this.profile_userid, this.nickName);
};
this.viewModify = function () {
/* var emo = '';
modifySeqEmo = this.seq;
if (this.parseq == 0) {
document.getElementById("_emo" + this.seq).innerHTML = emo;
}
*/ var cmt = '
';
cmt += '
';
document.getElementById("_cmt" + this.seq).innerHTML = cmt;
};
}
var comments = new Array();
var idx = 0;
comments[idx] = new ShortComment(idx, 1, 0, '01', false, '바람둥이', '', 'x9XomQMnGB10', '좋은 게시물이네요. 스크랩 해갈게요~^^', '2005/05/06');
idx++;
comments[idx] = new ShortComment(idx, 2, 0, '01', false, '바람둥이', '', 'x9XomQMnGB10', '좋은 게시물이네요. 스크랩 해갈게요~^^', '2005/05/06');
idx++;
function showShortComment() {
var html = '
';
var prevSeq = 0;
var idx = 0;
var hasParents = false;
for (var i = 0; i < comments.length; i++) {
if (comments[i].parseq == 0) {
// 부모 꼬리말이 삭제된 꼬리말 댓글
html += showShortCommentComment(prevSeq, comments[i].seq);
}
if (comments[i].parseq == 0) {
prevSeq = comments[i].seq;
var rank = '';
// 부모 꼬리말
html += comments[i].renderRow(rank);
hasParents = true;
// 부모 꼬리말이 삭제되지 않은 꼬리말 댓글
for (var j = i + 1; j < comments.length; j++) {
if (comments[j].parseq != 0 && comments[j].parseq == comments[i].seq) {
html += comments[j].renderRowCommentComment();
}
}
}
}
// 부모 꼬리말 모두 삭제된 경우, 자식 꼬리말 뿌려주기
if (!hasParents && comments.length > 0) {
html += showShortCommentComment(0, comments[comments.length - 1].seq + 1);
}
html += '
';
document.getElementById("shortCommentPlaceHolder").innerHTML = html;
}
function showShortCommentComment(beginSeq, endSeq) {
// 부모 꼬리말이 삭제된 꼬리말 댓글
var html = '';
for (var l = beginSeq + 1; l < endSeq; l++ ) {
var isNoteDelete = 0;
for (var k = 0; k < comments.length; k++ ) {
if (comments[k].parseq != 0 && comments[k].parseq == l) {
if (isNoteDelete == 0) {
html += comments[k].renderRowCommentDelete();
isNoteDelete = 1;
}
html += comments[k].renderRowCommentComment();
}
}
}
return html;
}
showShortComment();
현재 0/최대 300byte (한글 150자, 영문 300자)
function sle(n,h,d,i,u,t,r,b) {
var hc='h2',dc='d2';
if( h ) {
hc='h1';dc='d1';
}
var line = ''+t+' '+d+'
';
return line;
}
function sl() {
var contents ="";
var i=0,l=zSr.length;
if ( l > 6 ) {
i = 6;
}
while ( i < l ) {
contents += sle(i,i==6,zSr[i++],zSr[i++],zSr[i++],zSr[i++],zSr[i++],zSr[i++]);
}
return contents;
}
function clear() {
zSr = null;
}
function load(url, height) {
clear();
include.src = url;
setTimeout("viewSearch('" + url + "', '" + height + "')", 50);
}
function viewSearch(url, iHEIGHT) {
try {
document.getElementById("sponsor_cm").innerHTML= sl();
document.getElementById("sponsor_cm2").height=iHEIGHT;
document.getElementById("sponsor_cm2").style.display ='';
document.getElementById("CloseAd").style.display ='';
document.getElementById("space").style.display ='';
} catch ( e ) {
setTimeout("viewSearch('" + url + "', '" + iHEIGHT + "')", 10);
}
}