文章推荐给好友的两个代码

2009/3/1 来源:www.arpun.com 作者:小白

<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=10% nowrap class=tablebody1><b>本页URL地址(双击复制)</b>:</td>");

document.write("<td class=tablebody1><textarea onfocus=this.select() style='width:100%;overflow-y:visible;' ondblclick=copyCode(this) rows=1>");

document.write(self.location+"</textarea></td></tr></table>");

</script>

<br>

<!--{if $post['number'] == 1}-->

<div class="maxspeed altbg1" style="float: left; text-align: left;border-top:15px none; ; height:19px">

<div class="vtds center">

      <b>收藏到</b> [<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=http://www.jobui.com&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏的网页将被永久地保存到新浪ViVi收藏夹http://vivi.sina.com.cn"><font color="#FF6600">新浪ViVi</font></a>]

  <font color="#4CB509"></font>[<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'_blank','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));" title="收藏到POCO网摘http://share.poco.cn"><font color="#4cb509">;POCO网摘</font></a>] [<a title=将本文加入天极网摘 http://hot.yesky.com href=javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus(); style=text-decoration: none>天极网摘</a>]

[<a title=将本文加入和讯网摘 href=javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://bookmark.hexun.com/post.aspx?title='+escape(d.title)+'&url='+escape(d.locationhref)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus(); style=text-decoration: none><font color="#0000ff">和讯网摘</font></a>] [<a href="javascript:window.open('http://cang.baidu.com/do/add?it='+encodeURIComponent(document.title.substring(0,76))+'&iu='+encodeURIComponent(location.href)+'&fr=ien#nw=1','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0"><font color="#FF6600">百度搜藏</font></a>] [<a href="javascript:window.open('http://shuqian.qq.com/post?title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=960,height=600,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><font color=#0000ff>QQ书签</font></a>]</div>

</div>

<!--{/if}-->

 <!--复制地址开始-->

<input type="button" name="Submit" value="复制文章给QQ/MSN上的好友">

<script language="javascript">

function copyToClipBoard(){ var clipBoardContent="";

clipBoardContent+=document.title; clipBoardContent+="";

clipBoardContent+="网址是:"; clipBoardContent+="";

clipBoardContent+=this.location.href; clipBoardContent+="";

clipBoardContent+=", 你看一下吧!";

window.clipboardData.setData("Text",clipBoardContent); alert("复制成功, 请粘贴到你的QQ/MSN上推荐给你的好友"); } </script>

<!--复制地址结束-->

 

网友评论
评论(...
全部评论