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 应用实例