복사시 출처 남기는 방법...

복사시 출처 남기는 방법...

QA

복사시 출처 남기는 방법...

본문

https://sir.kr/qa/271856


<script type="text/JavaScript">
function copy_play()
{
if (window.event)
{
window.event.returnValue = true;
window.setTimeout('capy_plus()', 25);
}
}
function capy_plus()
{
if (window.clipboardData)
{
var txt = window.clipboardData.getData('Text');
var retUrl = document.URL;
txt = txt +'\n\n출처 :'+retUrl;
var result = window.clipboardData.setData('Text', txt);
}
}
</script>

이소스는 어디에 넣은건가요?

 

<!-- TextArea 복사될때 copy_play 부르기 -->
<div id='contents_area' onCopy='copy_play();'>

윗소스는 body 에 넣으라고 하는데 head.sub.php를 말하는건가요? 하루종일 봐도 해결이 안되어서 다시 글올립니다....도와주세요 ㅠㅠㅠㅠ

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
전체 125
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT