function webEditor_dhtmlEdit(excute,values) { dhtml.focus(); targetText = dhtml.document.selection.createRange(); if(values==null){ targetText.execCommand(excute); }else{ targetText.execCommand(excute,"",values); } } function webEditor_setForeColor() { //SHOW MODALDIALOG WIDOW; var color = showModalDialog("/momboard/modules/webeditor_colorchart.php",0,"dialogHeight=350px;dialogWidth=350px; scrollbars=no; status=0; help=0"); //CHANGE FONT COLOR if(color!=null){ dhtml.document.execCommand('ForeColor','',color); } dhtml.focus(); } function webEditor_createLink() { dhtml.focus(); targetText = dhtml.document.selection.createRange(); targetText.execCommand('CreateLink',1,''); } function SelectionCommand() { dhtml.focus(); targetText = dhtml.document.selection.createRange(); targetText.execCommand('CreateLink',1,''); if(targetText.parentElement().tagName=='A') { var href=targetText.parentElement().href; var data=targetText.text; targetText.execCommand('UnLink'); targetText.pasteHTML(""+data+""); } } function webEditor_changeMode(mode) { if(mode=='html') { document.bbs.main.value=dhtml.document.body.innerHTML; div_textarea.style.display=''; div_dhtml.style.display='none'; document.bbs.webeditor.value='no'; }else{ dhtml.document.body.innerHTML=document.bbs.main.value; div_dhtml.style.display=''; div_textarea.style.display='none'; document.bbs.webeditor.value='yes'; } } function webEditor_ShowValue(mode) { if(mode=='image') { dhtml.document.body.innerHTML='ȸ¿ø Á¤º¸»óÀÇ ÁÖ¼ÒÁö°¡ À߸øµÇ¾î ¹Ý¼ÛµÈ °æ¿ì, Àç¹ß¼ÛÇÏÁö ¾Ê½À´Ï´Ù.
Ç×»ó ¸¾½ºÄð ȸ¿ø´ÔµéÀÇ °³ÀÎÁ¤º¸¸¦ ÃÖ½ÅÈ­ ÇØÁÖ¼¼¿ä.
'; div_dhtml.style.display=''; div_textarea.style.display='none'; document.bbs.webeditor.value='yes'; }else{ dhtml.document.body.innerHTML="* µµ¼­¸í :
* ¸ðÁý Àοø :
* ¸ðÁý ±â°£ :
* ¹ßÇ¥ ³¯Â¥ :
* µµ¼­ ¼Ò°³ :
* ½Åû ¹æ¹ý :
* Èıâ ÀÛ¼º ±â°£ :


ȸ¿ø Á¤º¸»óÀÇ ÁÖ¼ÒÁö°¡ À߸øµÇ¾î ¹Ý¼ÛµÈ °æ¿ì, Àç¹ß¼ÛÇÏÁö ¾Ê½À´Ï´Ù.
Ç×»ó ¸¾½ºÄð ȸ¿ø´ÔµéÀÇ °³ÀÎÁ¤º¸¸¦ ÃÖ½ÅÈ­ ÇØÁÖ¼¼¿ä.
"; } } function webEditor_optimizing() { //CHECK CHAR if(dhtml.document.body.innerHTML=='') { alert('³»¿ëÀ» ÀÔ·ÂÇØÁֽʽÿä.'); return false; } //CHANGE LINK TARGET INTO _NEW for(var i=0;i