鼠标双击复制地址发送给你QQ或论坛里的朋友

<center><script>
function copyCode(o){
 o.select();var js=o.createTextRange();js.execCommand("Copy");alert("复制成功!");
}
document.write("<table align=center class=tableborder1 cellpadding=1 cellspacing=0><tr>");
document.write("<td width=40% nowrap class=tablebody1>鼠标双击复制地址发送给你QQ或论坛里的朋友:</td>");
document.write("<td class=tablebody1><textarea onfocus=this.select() style='width:80%;overflow-y:visible;' ondblclick=copyCode(this) rows=1>");
document.write(self.location+"</textarea></td></tr></table>");
                            </script></center> 

你可能感兴趣的:(function,qq,table,Class)