YesYo.com MintState Forums
뒤로    YesYo.com MintState BBS > Tech > Javascript
검색
멤버이름    오토
비밀번호 
 

드래그시 자동복사

페이지 정보

작성자 MintState 댓글 0건 조회 11,877회 작성일 08-10-31 11:43

본문

드래그시 자동복사

<script language="javascript">
bBool=false
var copiedtext=""
var tempstore=""

function initiatecopy() {
	bBool=true;
}

function copyit() {
	if (bBool) {
		tempstore=copiedtext
		document.execCommand("Copy")
		copiedtext=window.clipboardData.getData("Text");
		if (tempstore!=copiedtext) {
			alert(copiedtext);
		}
		bBool=false;
	}
}
document.onselectionchange = initiatecopy
document.onmouseup = copyit
</script>
드래그시 자동복사 됩니다.

댓글목록

등록된 댓글이 없습니다.

Total 178건 8 페이지
게시물 검색
모바일 버전으로 보기
CopyRight ©2004 - 2024, YesYo.com MintState. ™