테스트 사이트 - 개발 중인 베타 버전입니다

내용 복사해서 붙어넣기 하면 출처 따라오는 자바스크립트입니다.

· 9년 전 · 228

<SCRIPT language=JavaScript>
<!--

// 060710
function contents_cp()
{
if (window.event)
{
window.event.returnValue = true;
window.setTimeout('attach_kinref()', 25);
}
}

function attach_kinref()
{
if (window.clipboardData) // IE
{
// get data from clipboard
var txt = window.clipboardData.getData('Text');

// attach the source at the end of text
txt = txt + '\r\n(출처 : 네이부입니다.)\r\n';

// set data to clibboard
var result = window.clipboardData.setData('Text', txt);
}
}
// 060710

//-->
</SCRIPT>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
12438
12437
12436
12435
12434
12433
12432
12431
12430
12429
12428
12427
12426
12425
12424
12423
12422
12421
12420
12419
12418
12417
12416
12415
12414