document.body.oncopy = function () { 
setTimeout( function () { 
var text = window.clipboardData.getData("text");
if (text&&text.length>300) { 

text = text.replace(/本文来源于：[^\n]+/i,'');

text = text + "\r\n//本文来源于：IT学习.COM（www.ITxuexi.com）\r\n//原文请参考："+window.location.href;



if (window.clipboardData) {
                window.clipboardData.setData("Text", text)
} else {
                var flashcopier = 'flashcopier';
                if(!document.getElementById(flashcopier)) {
                        var divholder = document.createElement('div');
                        divholder.id = flashcopier;
                        document.body.appendChild(divholder);
                }
                document.getElementById(flashcopier).innerHTML = '';
                var divinfo = '<embed src="/flash/_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(text)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
                document.getElementById(flashcopier).innerHTML = divinfo;
}


} 
}, 100 ) 
}