document.body.oncopy = function ()  //当发生复制事件时触发函数,不管是ctrl+c还是右键-复制
{  
    setTimeout(  
        function()  
        {  
            var text = clipboardData.getData("text");  
            if (text)  
            {  
                text = text + "\r\n该文章转载自："+location.href;  
                clipboardData.setData("text", text);  
            }  
        },  
        100
    )  
}
window.onload = function()  
{  
    this.focus();   //内容加载完成后,获取焦点
}
