微博一键分享主要通过对指定 URL 添加各种参数来实现;
2024-10-12 16:35:12
微博一键分享主要通过对指定 URL 添加各种参数来实现;也可以用在线生成器自动生成。
示例:
搜狐微博一键分享 URL,只需三个参数: http://t.sohu.com/third/post.jsp?url=http://ma3310.vicp.net&title=搜狐一键分享真好用!&content=utf-8
网易微博一键分享 URL: http://t.163.com/article/user/checkLogin.do?source=网易科技&info=参数source貌似需要申请di...可是如何申请捏,要送红包么?
passit.cn 生成的代码,贴在页面上就能用:
- <script type="text/javascript">
- bookmark_service_div="bookmark,baidu,douban,sohuweibo,taojianhu,hexun,qqkj,yahoo,tianysq,more";
- bookmark_service="sinaweibo,163weibo,qqweibo,kxzt,xnzt,more";</script>
- <div class="passit_barDiv"><a class="passit_default" href="http://www.passit.cn/bookmark.html" target="_blank"></a></div>
- <script type="text/javascript">
- //生成页面的时候需要自定义这些变量
- var passit_title = "";//自定义分享标题,删除和留空表示使用默认
- var passit_url = "";//自定义分享网址,删除和留空表示使用默认
- var passit_content= "";//自定义分享内容,删除和留空表示使用默认
- </script>
- <script type="text/javascript" src="http://www.passit.cn/js/passit_bar_big_new.js?pub=4896&simple=1" charset="UTF-8"></script>
<script type="text/javascript">
bookmark_service_div="bookmark,baidu,douban,sohuweibo,taojianhu,hexun,qqkj,yahoo,tianysq,more";
bookmark_service="sinaweibo,163weibo,qqweibo,kxzt,xnzt,more";</script>
<div class="passit_barDiv"><a class="passit_default" href="http://www.passit.cn/bookmark.html" target="_blank"></a></div>
<script type="text/javascript">
//生成页面的时候需要自定义这些变量
var passit_title = "";//自定义分享标题,删除和留空表示使用默认
var passit_url = "";//自定义分享网址,删除和留空表示使用默认
var passit_content= "";//自定义分享内容,删除和留空表示使用默认
</script>
<script type="text/javascript" src="http://www.passit.cn/js/passit_bar_big_new.js?pub=4896&simple=1" charset="UTF-8"></script>
参考: 各种分享平台汇总:http://www.mhtml5.com/2011/03/704.html 实用分享代码:http://www.koryi.net/web/694.html
微博分享(一键转发) api 文档: http://open.t.sina.com.cn/wiki/index.php/ShareCode http://open.t.sohu.com/en/%E4%B8%80%E9%94%AE%E5%88%86%E4%BA%AB%E5%88%B0%E6%90%9C%E7%8B%90%E5%BE%AE%E5%8D%9A http://open.t.qq.com/apps/share/explain.php http://www.wbto.cn/share.html
微博分享工具在线生成器: http://www.passit.cn/ http://www.bshare.cn/ http://www.addthis.com/
最新文章
- linux 网卡启动方法
- Ceph剖析:故障检测
- 今天来做一个PHP电影小爬虫。
- Mac或Linux中对Android抓包
- 一个简单的DDraw应用程序
- hdu4710
- iOS 水波效果
- [笔记]关于支持向量机(SVM)中 SMO算法的学习(一)理论总结
- 什么是体数据可视化(Volume data visualization)?及体绘制的各种算法和技术的特点?
- 智齿客服网页端接入文档V2.3
- python自定义pi函数的代码
- java将对象转map,map转对象工具类
- css基础二
- 201671010142 <;<;面向对象程序设计(Java) 实验十五 线程 感悟和总结>;>;
- React native中使用XMLHttpRequest请求数据
- R语言语法基础二
- 阿里技术专家详解Dubbo实践,演进及未来规划
- js 菜单收起和展开
- java:static详解
- 五、MYSQL的索引
热门文章
- JavaScript数据结构——数组
- sqlserver mdf向上兼容附加数据库(无法打开数据库 &#39;xxxxx&#39; 版本 611。请将该数据库升级为最新版本。)
- POJ 1860 Currency Exchange (最短路)
- c 深度剖析 3
- AttributeError: &#39;NoneType&#39; object has no attribute &#39;bytes&#39; python3.4 win64
- 最小二乘法 java
- spark新能优化之提高并行度
- Android概述(思维导图)
- 课堂所讲整理:输入输出流(I/O)
- gcc: multiple definition of [转]