<scRIPT>
// ²¿¸®¸» ´Þ±â ½ÃÀÛ
function AppendShortComment() {
emoticonIndex = -1;
for ( i = 0; i < document.bbsForm.emoticonView.length; i++ )
if ( document.bbsForm.emoticonView[i].checked )
emoticonIndex = i;
if ( emoticonIndex == -1 ) {
alert('Ç¥Á¤À» ¼±ÅÃÇϼ¼¿ä.');
return;
}
document.bbsForm.action = '/_c21_/short_comment_hdn?grpid=f3fv';
document.bbsForm.comment.value=document.bbsForm.comment_view.value;
document.bbsForm.emoticon.value=document.bbsForm.emoticonView[emoticonIndex].value;
document.bbsForm.act.value='A';
document.bbsForm.fldid.value = '6ppH';
document.bbsForm.dataid.value = '414';
document.bbsForm.nickname.value = 'seungseok';
document.bbsForm.grpcode.value = 'themaland77';
document.bbsForm.return_url.value = '/_c21_/bbs_read?grpid=f3fv&mgrpid=&fldid=6ppH&page=1&prev_page=0&firstbbsdepth=&lastbbsdepth=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz&contentval=0006gzzzzzzzzzzzzzzzzzzzzzzzzz&datanum=414&head=&subj=%BE%F3%BE%BE%B1%B8%21+%C1%F6%C8%AD%C0%DA%21%7E%7E%7E&nick=%C0%CE%C3%B5%B0%A5%B8%C5%B1%E2&id=4wzbk35y4QU0&smsnum=-1&smsvalid=0&count=3&day=20050119085134&datatype=9&selectyn=n&avatarcate=1&rowid=&edge=F';
var resultComment = document.bbsForm.comment.value.split(' ');
if ( null == resultComment || document.bbsForm.comment.value.length + 1 == resultComment.length ) {
alert( '³»¿ëÀ» ÀÔ·ÂÇϽŠµÚ µî·Ï¹öÆ°À» ´·¯ÁÖ¼¼¿ä.' );
document.bbsForm.comment_view.focus();
return;
}
if ( resultComment.length > 300 ) {
alert( '²¿¸®¸»Àº 300ÀÚ À̳»ÀÔ´Ï´Ù. ' + resultComment.length );
document.bbsForm.comment_view.focus();
return;
}
document.bbsForm.submit();
}
function DeleteShortComment(seq) {
if (confirm('Á¤¸»·Î »èÁ¦ÇϽðڽÀ´Ï±î?')) {
document.bbsForm.action = '/_c21_/short_comment_hdn?grpid=f3fv';
document.bbsForm.target = '';
document.bbsForm.act.value='D';
document.bbsForm.fldid.value='6ppH';
document.bbsForm.dataid.value='414';
document.bbsForm.grpcode.value = 'themaland77';
document.bbsForm.seq.value = seq;
document.bbsForm.return_url.value = '/_c21_/bbs_read?grpid=f3fv&mgrpid=&fldid=6ppH&page=1&prev_page=0&firstbbsdepth=&lastbbsdepth=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz&contentval=0006gzzzzzzzzzzzzzzzzzzzzzzzzz&datanum=414&head=&subj=%BE%F3%BE%BE%B1%B8%21+%C1%F6%C8%AD%C0%DA%21%7E%7E%7E&nick=%C0%CE%C3%B5%B0%A5%B8%C5%B1%E2&id=4wzbk35y4QU0&smsnum=-1&smsvalid=0&count=3&day=20050119085134&datatype=9&selectyn=n&avatarcate=1&rowid=&edge=F';
document.bbsForm.submit();
}
}
function ModifyViewShortComment(seq) {
document.getElementById('plainCmt_' + seq).style.display='none';
document.getElementById('plainCmtEmo_' + seq).style.display='none';
document.getElementById('editCmt_' + seq).style.display='inline';
document.getElementById('editCmtEmo_' + seq).style.display='inline';
}
function ModifyShortComment( seq, emoticon ) {
document.bbsForm.action = '/_c21_/short_comment_hdn?grpid=f3fv';
document.bbsForm.act.value='U';
document.bbsForm.fldid.value='6ppH';
document.bbsForm.dataid.value='414';
document.bbsForm.grpcode.value = 'themaland77';
document.bbsForm.seq.value = seq;
var changeEmoticon = document.bbsForm.emoticon.value;
if (changeEmoticon == '')
document.bbsForm.emoticon.value = emoticon;
else
document.bbsForm.emoticon.value = changeEmoticon;
document.bbsForm.comment.value = eval('document.bbsForm.comment_'+seq).value;
document.bbsForm.return_url.value = '/_c21_/bbs_read?grpid=f3fv&mgrpid=&fldid=6ppH&page=1&prev_page=0&firstbbsdepth=&lastbbsdepth=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz&contentval=0006gzzzzzzzzzzzzzzzzzzzzzzzzz&datanum=414&head=&subj=%BE%F3%BE%BE%B1%B8%21+%C1%F6%C8%AD%C0%DA%21%7E%7E%7E&nick=%C0%CE%C3%B5%B0%A5%B8%C5%B1%E2&id=4wzbk35y4QU0&smsnum=-1&smsvalid=0&count=3&day=20050119085134&datatype=9&selectyn=n&avatarcate=1&rowid=&edge=F';
var resultComment = document.bbsForm.comment.value.split(' ');
if ( null == resultComment || document.bbsForm.comment.value.length + 1 == resultComment.length ) {
alert( '³»¿ëÀ» ÀÔ·ÂÇϽŠµÚ µî·Ï¹öÆ°À» ´·¯ÁÖ¼¼¿ä.' );
document.bbsForm.comment_view.focus();
return;
}
if ( resultComment.length > 300 ) {
alert( '²¿¸®¸»Àº 300ÀÚ À̳»ÀÔ´Ï´Ù. ' + resultComment.length );
document.bbsForm.comment_view.focus();
return;
}
document.bbsForm.submit();
}
function change_emo(face_num) {
curEmoId.src='http://cafeimg.hanmail.net/cf_img/icon'+(face_num<10?'0'+face_num:face_num)+'.gif';
document.bbsForm.emoticon.value=face_num;
}
var curEmoId;
//À̸ðƼÄÜ ¼öÁ¤
function showhide2(img_id) {
eLayer = document.getElementById('emoticon_modify').style;
if(eLayer.visibility=='visible')
eLayer.visibility='hidden';
else {
curEmoId = img_id;
var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf('Gecko')>-1) && dom) ? true: false;
var ie5 = ((navigator.userAgent.indexOf('MSIE')>-1) && dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft+5;
mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
eLayer.left = mouseX;
eLayer.top = mouseY;
eLayer.visibility='visible';
}
}
scRIPT>
*À½¾ÇÀÌ ¾ø¾î¼ ¾µ¾µÇÏ´Ù±¸¿ä
À§¿¡ »ç¶÷À» Çϳª Çϳª Ŭ¸¯ Çغ¸¼¼¿ä^^*
Áñ°Å¿î ½Ã°£ µÇ¼¼¿ä..¤»¤»¤»^^*
| | | | | |