// 꼬리말 달기 시작 function AppendShortComment(parseq) { var emocode = document.bbsForm.emoticon.value; if(emocode == null || emocode=="" && g_emoticon!=-1){ emocode = g_emoticon; document.bbsForm.emoticon.value=emocode; } if (emocode == "" || typeof(emocode) == "undefined" || emocode == -1) { emocode = "01"; } if (parseq == 0) { // 꼬리말의 꼬리말이 아님. document.bbsForm.comment.value = document.bbsForm.comment_view.value; } else { // document.bbsForm.comment.value = eval("document.bbsForm.commentReplyText" + parseq + ".value"); document.bbsForm.comment.value = document.getElementById("commentReplyText" + parseq).value; } document.bbsForm.parseq.value = parseq; document.bbsForm.act.value='A'; document.bbsForm.fldid.value = 'Fo1r'; document.bbsForm.dataid.value = '1'; document.bbsForm.nickname.value = '바다햇'; document.bbsForm.grpcode.value = 'ksj0296'; document.bbsForm.return_url.value = '/_c21_/bbs_read?grpid=z3WF&mgrpid=&fldid=Fo1r&page=1&prev_page=0&firstbbsdepth=&lastbbsdepth=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz&contentval=00001zzzzzzzzzzzzzzzzzzzzzzzzz&datanum=1'; if ( null == document.bbsForm.comment.value || "" == document.bbsForm.comment.value ) { alert( "내용을 입력하신 뒤 등록버튼을 눌러주세요." ); document.bbsForm.comment_view.focus(); return; } if ( document.bbsForm.comment.value.length > 300 ) { alert( "꼬리말은 300자 이내입니다." ); document.bbsForm.comment_view.focus(); return; } document.bbsForm.action = '/_c21_/short_comment_action?grpid=z3WF&mgrpid=&emoticon='+emocode; //document.all("submit_check").innerHTML= "
"; document.bbsForm.submit(); } function _mod( seq, emoticon ) { document.bbsForm.act.value='U'; document.bbsForm.fldid.value='Fo1r'; document.bbsForm.dataid.value='1'; document.bbsForm.grpcode.value = 'ksj0296'; document.bbsForm.seq.value = seq; var changeEmoticon = document.bbsForm.emoticon.value; var emocode; if (changeEmoticon == "" || typeof(changeEmoticon) == "undefined"){ document.bbsForm.emoticon.value = emoticon; emocode = emoticon; }else{ document.bbsForm.emoticon.value = changeEmoticon; emocode = changeEmoticon; } document.bbsForm.action = '/_c21_/short_comment_action?grpid=z3WF&mgrpid=&emoticon='+emocode; // document.bbsForm.comment.value = eval("document.bbsForm.comment_"+seq).value; document.bbsForm.comment.value = document.getElementById("comment_" + seq).value; document.bbsForm.return_url.value = '/_c21_/bbs_read?grpid=z3WF&mgrpid=&fldid=Fo1r&page=1&prev_page=0&firstbbsdepth=&lastbbsdepth=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz&contentval=00001zzzzzzzzzzzzzzzzzzzzzzzzz&datanum=1'; document.bbsForm.submit(); } var modifySeqEmo = -1; var g_emoticon = -1; function change_emo(face_num) { g_emoticon = face_num; document.bbsForm.emoticon.value = face_num; if (modifySeqEmo == -1) { document.bbsForm.emoticon_selected.src = "http://cafeimg.hanmail.net/cf_img/icon" + (face_num < 10 ? '0' + face_num : face_num) + ".gif"; } else { curEmoId.src = "http://cafeimg.hanmail.net/cf_img/icon" + (face_num < 10 ? '0' + face_num : face_num) + ".gif"; } } //꼬리말에 코멘트 관련 //-->
| '; cmt += '
| '; document.getElementById("_cmt" + this.seq).innerHTML = cmt; }; } var comments = new Array(); var idx = 0; function showShortComment() { var 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(); |
첫댓글 좋은 게시물이네요. 스크랩 해갈게요~^^