腾讯公共分享测试 PHP

在很多网站都提供分享、转发等功能!在此进行实验测试!

腾讯微博 一键转播

获取地址:http://open.t.qq.com/apps/share/explain.php

代码:

<a href="javascript:void(0)" onclick="postToWb();" class="tmblog"><img src="http://v.t.qq.com/share/images/s/b32.png" /></a>
<script type="text/javascript">
	function postToWb(){
		var _t = encodeURI(document.title);
		var _url = encodeURIComponent(document.location);
		var _appkey = encodeURI('appkey');//你从腾讯获得的appkey
		var _pic = encodeURI('');//(例如:var _pic='图片url1|图片url2|图片url3....)
		var _site = '';//你的网站地址
		var _u = 'http://v.t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;
		window.open( _u,'转播到腾讯微博', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
	}
</script>

效果:


腾讯微博 微博秀

获取地址:http://open.t.qq.com/apps/show/explain.php

代码:

<iframe frameborder="0" scrolling="no" src="http://v.t.qq.com/show/show.php?n=zjfree&w=302&h=552&fl=1&l=4&o=15&c=0&si=d67d85fecd36a1bc5400cdac02644db16c3c56e5" width="302" height="552"></iframe>

效果:

博客园不支持iframe,打开以下连接查看效果

http://v.t.qq.com/show/show.php?n=zjfree&w=302&h=552&fl=1&l=4&o=15&c=0&si=d67d85fecd36a1bc5400cdac02644db16c3c56e5


腾讯微博 广播站

获取地址:http://open.t.qq.com/apps/pendant/explain.php

代码:

<iframe frameborder="0" scrolling="no" src="http://v.t.qq.com/pendant/show.php?n=zjfree&w=302&h=552&fl=2&l=8&o=15&c=0&si=d67d85fecd36a1bc5400cdac02644db16c3c56e5" width="302" height="552"></iframe>

效果:

博客园不支持iframe,打开以下连接查看效果

http://v.t.qq.com/pendant/show.php?n=zjfree&w=302&h=552&fl=2&l=8&o=15&c=0&si=d67d85fecd36a1bc5400cdac02644db16c3c56e5


腾讯微博 签名档

获取地址:http://open.t.qq.com/apps/sign/explain.php

代码:

图片地址:http://v.t.qq.com/sign/zjfree/d67d85fecd36a1bc5400cdac02644db16c3c56e5/1.jpg

效果如下:


QQ在线状态

获取地址:http://wp.qq.com

代码:

<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=46549909&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:46549909:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>

效果:

点击这里给我发消息


腾讯社区分享组件

获取地址:http://opensns.qq.com/share/

代码:

<a href="javascript:void(0);" onclick="window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href));return false;" title="分享到QQ空间"><img src="http://qzonestyle.gtimg.cn/ac/qzone_v5/app/app_share/btn_share.png" alt="分享到QQ空间" /></a>

效果:

分享到QQ空间


欢迎转载,转载请注明:转载自[ http://www.cnblogs.com/zjfree/ ]
原文地址:https://www.cnblogs.com/zjfree/p/1881707.html