页面常用代码一

document.body.oncopy = function ()

{
 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();
}

posted @ 2007-08-20 21:37  Samgle  阅读(305)  评论(0)    收藏  举报