微博一键分享主要通过对指定 URL 添加各种参数来实现;


微博一键分享主要通过对指定 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 生成的代码,贴在页面上就能用:
Javascript代码 复制代码  收藏代码
  1. <script type="text/javascript">  
  2. bookmark_service_div="bookmark,baidu,douban,sohuweibo,taojianhu,hexun,qqkj,yahoo,tianysq,more";  
  3. bookmark_service="sinaweibo,163weibo,qqweibo,kxzt,xnzt,more";</script>  
  4. <div class="passit_barDiv"><a class="passit_default" href="http://www.passit.cn/bookmark.html" target="_blank"></a></div>  
  5. <script type="text/javascript">  
  6. //生成页面的时候需要自定义这些变量  
  7. var passit_title = "";//自定义分享标题,删除和留空表示使用默认  
  8. var passit_url = "";//自定义分享网址,删除和留空表示使用默认  
  9. var passit_content= "";//自定义分享内容,删除和留空表示使用默认  
  10. </script>  
  11. <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/
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值