CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

Contents Management System

저는 단지 정리해서 올리는 것입니다.

원본글입니다. http://reedyfox.com/bbs/zboard.php?id=qna&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=516.html

참조 파일입니다.
write.php파일입니다. http://reedyfox.com/0405/040525.phps
write.php에 인클루딩된 이모티콘 관련 파일입니다. http://reedyfox.com/0405/040527.phps

write.php 수정

1) 맨 위에 이 스크립트들을 넣어주세요.

<SCRIPT LANGUAGE="JavaScript">
function sb_formresize_down(obj) {
    obj.rows += 3;
}
function sb_formresize_up(obj) {
    obj.rows -= 3;
}
</SCRIPT>
<script>
function AddChar(ch){
    if(document.write.memo.createTextRange){
        document.write.memo.focus();
        document.selection.createRange().duplicate().text+=ch;
    }else{
        document.write.memo.value+=ch;
    }
}

function AddTag(ch1,ch2){
    if(document.write.memo.createTextRange){
        document.write.memo.focus();
        document.selection.createRange().duplicate().text = ch1 + document.selection.createRange().duplicate().text + ch2;
        document.selection.createRange().select();
    }
}

function random(n) {
    return Math.floor(Math.random()*n);
}

function AddshowandhideTag(ch1,ch2){
    if(document.write.memo.createTextRange){
        document.write.memo.focus();
        document.selection.createRange().duplicate().text = ch1 + random(10000) + "|" + document.selection.createRange().duplicate().text + ch2;
        document.selection.createRange().select();
    }
}

</script>
<SCRIPT LANGUAGE="JavaScript">
function copy()
{
if(confirm("게시물 내용을 복사하시겠습니까?nn등록 실패시 Ctrl + V로 붙여넣기가 가능합니다.nn복사를 원하지 않으시면 취소를 눌러주세요."))
{
copyit('write.memo')
}
}
function copyit(theField) {
        var tempval=eval("document."+theField)
        tempval.focus()
        tempval.select()
        therange=tempval.createTextRange()
        therange.execCommand("Copy")
}
</script>


2) <textarea name=memo <?=size2(70)?> rows=30 class=sb_contents><?=$memo?></textarea>의 윗 부분에
  이 코드를 삽입시켜 주십시오.
  <? include "include/emo_w.php"; ?>

추천한 사람

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기