代码一
<script>
function selecturl(){
z=documentbodycreateTextRange();
zmoveToElementText(selecturlDiv);
zselect();
}
</script>
<span onmousemove=selecturl() id=selecturlDiv><script>documentwrite(locationhref)</script>
代码二
<script>
function copyCode(o){oselect();var js=ocreateTextRange();jsexecCommand(Copy);alert(复制成功!);}
documentwrite(<table align=center class=tableborder cellpadding= cellspacing=><tr>);
documentwrite(<td width=% nowrap class=tablebody>本页URL地址(双击复制)</td>);
documentwrite(<td class=tablebody><textarea onfocus=thisselect() style=width:%;overflowy:visible; ondblclick=copyCode(this) rows=>);
documentwrite(selflocation+</textarea></td></tr></table>);
</script>
代码三
<script language=javascript>
<!
function copyToClipBoard(){
var clipBoardContent=documentlocation;
clipBoardContent+=rn;
windowclipboardDatasetData(TextclipBoardContent);
alert(耶!复制成功喽!你可以粘贴在QQ消息里送给你的好朋友呀!再次感谢你对 {TheBlogTitle} 的支持哦!);
}
//>
</script>
<script language=javascript>
documentwrite(<img src=templates/{TemplateName}/images/dbgif width= height=>);
documentwrite(<input size= value=+documentlocation+><input type=button value=推荐给朋友 title=点击复制地址到剪贴板直接在MSN/QQ上粘贴即可 onclick=copyToClipBoard()>);
</script>