【html】网页常用分享代码大全(前端必备)
1、新浪微博
<a href="http://v.t.sina.com.cn/share/share.php?url=http://www.jb51.net&title='分享内容'" target="_blank">新浪微博</a> </p> <p>
2、腾讯微博
<a href="http://v.t.qq.com/share/share.php?url=http://www.jb51.net&title='分享内容'" target="_blank">腾讯微博</a> </p> <p>
3、开心网
<a href="javascript:window.open('http://www.kaixin001.com/repaste/share.php?rtitle='+encodeURIComponent(document.title)+'&rurl='+encodeURIComponent(document.location.href)+'&rcontent=');void(0)">开心网</a>
或者用
<a href="http://www.kaixin001.com/repaste/share.php?rurl=http://www.jb51.net&rcontent=http://www.baidu.com&rtitle=kaixin" target="_blank">开心网</a> </p> <p>
4、豆瓣网
<a href="javascript:window.open('http://www.douban.com/recommend/?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title));void(0)">豆瓣</a> </p> <p>
或者用
<a href="http://www.douban.com/recommend/?url=http://www.jb51.net&title=douban" target="_blank">豆瓣</a> </p> <p>
5、人人网
<a href="javascript:window.open('http://share.renren.com/share/buttonshare.do?link='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title));void(0)">人人网</a>
或者用
<a href="http://share.renren.com/share/buttonshare.do?link=http://www.jb51.net" target="_blank">人人网</a> </p> <p>
6、百度贴吧
<a href="http://tieba.baidu.com/f/commit/share/openShareApi?url=http://www.jb51.net&title=hello&desc=&pic=" target="_blank">百度贴吧</a> </p> <p>
7、QQ好友
<a href="http://connect.qq.com/widget/shareqq/index.html?title=qqhaoyou&url=http://www.jb51.net&desc=还不错哦&pics=&site=优酷" target="_blank">QQ好友</a> </p> <p>
8、QQ空间
<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http://www.jb51.net" target="_blank">QQ空间</a> </p> <p>
9、腾讯朋友
<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?to=pengyou&url=http://www.jb51.net" target="_blank">腾讯朋友</a> </p> <p>
10、百度收藏
<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','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0">百度搜藏</a> </p> <p>
11、优酷空间
<a href="http://i.youku.com/u/share/?url=http://www.jb51.net&content='分享内容'" target="_blank">优酷空间</a> </p> <p>
12、搜狐微博
<a href="http://t.sohu.com/third/post.jsp?content=utf-8&url=http://www.jb51.net&title=souhu" target="_blank">搜狐微博</a> </p> <p>
13、MSN
<a href="http://profile.live.com/badge/?url=http://www.jb51.net&Title=msn" target="_blank">MSN</a> </p> <p>
14、猫扑
<a href="http://tt.mop.com/share/shareV.jsp?title=moptietie&pageUrl=http://www.jb51.net" target="_blank">MOP贴贴</a> </p> <p>
15、网易微博
<a href="http://t.163.com/article/user/checkLogin.do?link=http://www.jb51.net" target="_blank">网易微博</a> </p> <p>
16、QQ书签 </p> <p><a 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)">QQ书签</a> </p> <p>
17、GOOGLE书签:
<a href="javascript:window.open('http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title));void(0)">Google</a> </p> <p>
18、Twitter
<a href="javascript:window.open('http://twitter.com/home?status='+encodeURIComponent(document.location.href)+' '+encodeURIComponent(document.title));void(0)">Twitter</a> </p> <p>
19、Facebook
<a class="fav_facebook" rel="nofollow" href="javascript:window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(document.location.href)+'&t='+encodeURIComponent(document.title));void(0)">Facebook</a> </p> <p>
20、Delicious书签: </p> <p><a href="javascript:window.open('http://del.icio.us/post?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title)+'¬es=');void(0)">Delicious</a>
由于现在很多分享平台都出来了,而且兼容性更好,一般多选择 百度分享等第三方分享平台。大家可以看下。
原文链接:http://www.wswxy.cn
【html】网页常用分享代码大全(前端必备)相关推荐
- 网页常用分享代码大全——整理摘抄至他人嘿嘿
1.新浪微博 <a href="http://v.t.sina.com.cn/share/share.php?url=http://www.jb51.net&title='分享 ...
- 网页制作精华代码大全
1. οncοntextmenu="window.event.returnvalue=false" 将彻底屏蔽鼠标右键 <tableborder οncοntext ...
- 一键 html代码排序,SEO中常用HTML代码大全,及权重排序
原标题:SEO中常用HTML代码大全,及权重排序 做SEO必须要懂HTML,说的是一点都没错,不过其实是不需要全部都懂,最重点的你懂了会用,基本上都是事半功倍了.可以这么说一个不懂代码的优化人员不算是 ...
- 网页在线视频播放代码大全(收藏)
常用的网页在线视频播放代码,原文转自: http://www.jbxue.com/article/9042.html 使用说明:把代码中的视频路径换成与自己的相对路径或绝对路径,播放器的窗口大小,根据 ...
- 【转载】html网页字体颜色代码大全
https://blog.csdn.net/wangzhufei/article/details/79955616 颜色代码大全: 1 白颜色 #FFFFFF 2 红颜色 #FF0000 3 绿颜 ...
- 前端之jQuery框架/全面教程/一小时速成/常用点整合 【附代码、前端必备之一】
jQuery 目录 1.选择器和事件 2.html 2.1获得内容 - text().html() 以及 val() 2.2设置text().val().html() 2.3添加元素 2.4删除元素 ...
- idc网站html源码,40个网页常用小代码
1. οncοntextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 中.国站长站 可用于Table 中.国.站.长.站 2. 取 ...
- 网页视频播放php拉伸代码,网页在线视频播放代码大全
使用说明:把代码中的视频路径换成与自己的相对路径或绝对路径,播放器的窗口大小,根据需要修改高和宽的参数. 1.avi格式 2.mpg格式 3.rm格式 4.wmv格式 5:最简单的播放代码 6:有图像 ...
- 网页特效java代码,美化网页常用特效代码
1.让文字不停地滚动 <MARQUEE>滚动文字</MARQUEE> 2.记录并显示网页的最后修改时间 <script language=JavaScript> d ...
- html50页面显示在线人数,50个网页常用小代码
1. οncοntextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 οncοntextmenu=return(false)> ...
最新文章
- 主流Kubernetes发行版梳理,看完就会选了
- vsc系统是什么意思_电脑蓝屏是什么意思?蓝屏就一定要重装系统吗?你可不要弄错了...
- 用 Scikit-Learn 和 Pandas 学习线性回归
- 用cxSelect插件补充一下回显过滤项功能
- VTK:图表之DirectedGraphToMutableDirectedGraph
- css 波纹扩散_html5 +css3 点击后水波纹扩散效果 兼容移动端
- oracle 在数据库打开状态下进行备份时_下面描述不正确的是,Oracle数据库DBA面试题50道及答案_经典...
- thinkphp如何增加session的过期时间
- 判断两颗棵二叉树是否相等
- swish 好还是relu好_筒灯暗装好还是明装好?
- 【GTK3.0】背景设置
- html如何添加时钟效果,基于HTML5+CSS3实现简单的时钟效果
- Ubuntu下Truffle框架的搭建 2022年最新版
- python建模过程总结(一)
- CISSP避坑经验指南
- 乱码 问号 java_java 中文 乱码 问号
- java ognl表达式_ognl 详解 Struts2中的OGNL表达式 | 学步园
- 计算机一级安装包怎么升级,详细教您win7如何升级为sp1
- Internet选项里没有常规选项卡
- SAP 财务月结之 外币评估(TCODE:FAGL_FC_VAL,S4版本用 FAGL_FCV)<转载>