Home » 前端技术 » 网页常用分享代码大全

网页常用分享代码大全

分享在网页中的应用在今日已经相当的普及了,本文整理了一些常用的分享代码,可谓是应有尽有,大家不妨在制作的过程中参考下,或许对大家有所帮助

1、新浪微博

<a href="http://v.t.sina.com.cn/share/share.php?url=http://www.shao-ming.com&amp;title='分享内容'" target="_blank">新浪微博</a>

2、腾讯微博

<a href="http://v.t.qq.com/share/share.php?url=http://www.shao-ming.com&amp;title='分享内容'" target="_blank">腾讯微博</a>

3、开心网

<a href="javascript:window.open('http://www.kaixin001.com/repaste/share.php?rtitle='+encodeURIComponent(document.title)+'&amp;rurl='+encodeURIComponent(document.location.href)+'&amp;rcontent=');void(0)">开心网</a>

或者用

<a href="http://www.kaixin001.com/repaste/share.php?rurl=http://www.shao-ming.com&amp;rcontent=http://www.baidu.com&amp;rtitle=kaixin" target="_blank">开心网</a>

4、豆瓣网

<a href="javascript:window.open('http://www.douban.com/recommend/?url='+encodeURIComponent(document.location.href)+'&amp;title='+encodeURIComponent(document.title));void(0)">豆瓣</a>

或者用

<a href="http://www.douban.com/recommend/?url=http://www.shao-ming.com&amp;title=douban" target="_blank">豆瓣</a>

5、人人网

<a href="javascript:window.open('http://share.renren.com/share/buttonshare.do?link='+encodeURIComponent(document.location.href)+'&amp;title='+encodeURIComponent(document.title));void(0)">人人网</a>

或者用

<a href="http://share.renren.com/share/buttonshare.do?link=http://www.shao-ming.com" target="_blank">人人网</a>

6、百度贴吧

<a href="http://tieba.baidu.com/f/commit/share/openShareApi?url=http://www.shao-ming.com&amp;title=hello&amp;desc=&amp;pic=" target="_blank">百度贴吧</a>

7、QQ好友

<a href="http://connect.qq.com/widget/shareqq/index.html?title=qqhaoyou&amp;url=http://www.shao-ming.com&amp;desc=还不错哦&amp;pics=&amp;site=优酷" target="_blank">QQ好友</a>

8、QQ空间

<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http://www.shao-ming.com" target="_blank">QQ空间</a>

9、腾讯朋友

<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?to=pengyou&amp;url=http://www.shao-ming.com" target="_blank">腾讯朋友</a>

10、百度收藏

<a href="javascript:window.open('http://cang.baidu.com/do/add?it='+encodeURIComponent(document.title.substring(0,76))+'&amp;iu='+encodeURIComponent(location.href)+'&amp;fr=ien#nw=1','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0">百度搜藏</a>

11、优酷空间

<a href="http://i.youku.com/u/share/?url=http://www.shao-ming.com&amp;content='分享内容'" target="_blank">优酷空间</a>

12、搜狐微博

<a href="http://t.sohu.com/third/post.jsp?content=utf-8&amp;url=http://www.shao-ming.com&amp;title=souhu" target="_blank">搜狐微博</a>

13、猫扑

<a href="http://tt.mop.com/share/shareV.jsp?title=moptietie&amp;pageUrl=http://www.shao-ming.com" target="_blank">MOP贴贴</a>

14、网易微博

<a href="http://t.163.com/article/user/checkLogin.do?link=http://www.shao-ming.com" target="_blank">网易微博</a>

15、QQ书签

<a href="javascript:window.open('http://shuqian.qq.com/post?from=3&amp;title='+encodeURIComponent(document.title)+'&amp;uri='+encodeURIComponent(document.location.href)+'&amp;jumpback=2&amp;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)">QQ书签</a>
Continue reading...
分享