页面常用代码一

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

    -- S.Sams Lifexperience!
posted @ 2007-08-20 21:37 S.Sams 阅读(72) 评论(0)  编辑 收藏 网摘 所属分类: Javascript 应用实例

标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
Google站内搜索

China-pub 计算机图书网上专卖店!6.5万品种 2-8折!
近千种 9-95 新二手计算图书火热销售中!
开发者征途系统新作:《设计模式——基于C#的工程化实现及扩展》



相关文章:

相关链接: