[¼Ò½º] ¸¶¿ì½º µå·¡±×½Ã °æ°íâ <!--1. ¾Æ·¡ ½ºÅ©¸³Æ®¸¦ HEAD ºÎºÐ¿¡ º¹»çÇØ ³ÖÀ¸¼¼¿ä. -->
<script>
//Copytext to clipboard- by Gennero (patrice.gennero@voila.fr)
//Submited to DynamicDrive.com
//Visit http://www.dynamicdrive.com for this script
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>