HTML开心人人新浪微薄等

昨天整理了一下分享到开心、豆瓣、微博的程序代码,需要的保留一份:
网站找了很多,都用不成,下面的代码测试通过:
图片的话,自己可以换,我用的是自己网站上的图片

<!--分享至新浪微博代码-->
分享到:  
<a title="新浪微博" href="javascript:(function(){window.open('http://v.t.sina.com.cn/share/share.php?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&source=bookmark','_blank','width=450,height=400');})()"><img border="0" title="分享至新浪微博" alt="分享至新浪微博" src="http://t.sina.com.cn/favicon.ico" align=absMiddle/></a>  

<!--分享至人人网代码
//rcontent为内容属性,title为标题,可以自行修改-->

<a href="javascript:void((function(s,d,e){if(/renren/.com/.test(d.location))return;var f='http://share.renren.com/share/buttonshare?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));" title="分享到人人"><img src="http://www.wybsw.com/QQ/images/220A15W5-0.png" title="分享到人人" align=absMiddle border=0/></a>

<!--分享至开心网代码-->

<script type="text/javascript">
document.writeln("<a href=/"javascript:window.open(/'http:www.kaixin001.com//repaste//share.php?rtitle=/'+encodeURIComponent(document.title.substring(0,76))+/'&rurl=/'+encodeURIComponent(location.href)+/'&rcontent=/'+encodeURIComponent(document.title.substring(0,76)),/'_blank/',/'scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes/'); void 0/" style=/"color:#000000;text-decoration:none;font-size:12px;font-weight:normal/"><IMG alt=转帖到开心网 src=/"http:img1.kaixin001.com.cn//i//favicon.ico/" align=absMiddle border=0><//a>");
</script>


<!--分享至豆瓣代码-->

<a rel="nofollow" class="fav_douban" href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:'',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()">
<img src="http://www.wybsw.com/QQ/images/douban.jpg" title="分享到豆瓣" align=absMiddle border=0/>
</a>

<!--分享至QQ书签-->

<a rel="nofollow" class="fav_qq" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)">
<img src="http://www.wybsw.com/QQ/images/ico_Qzone.gif" title="分享到QQ书签" align=absMiddle border=0/>
</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);">
<img src="http://www.wybsw.com/QQ/images/bdu.jpg" title="分享到百度收藏" align=absMiddle border=0/>
</a>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值