分享到QQ空间、新浪微博、腾讯微博的代码

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

QQ空间分享代码如下:

href="javascript:void(0);" onclick="window.open('http://sns.qzone.qq .com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(docu ment.location.href));return false;" title="分享到QQ空间">分享到QQ空间

新浪微博分享代码如下:

腾讯微博分享代码如下:

href="javascript:void(0)" onclick="postToWb();" class="tmblog">

QQ朋友社区分享代码如下:

分享到朋友社区

这里发个自己DIY的分享代码,喜欢的可以拿去用,预览图如下

图片素材在压缩包里,代码内容如下,保存为js文件即可,压缩包里也有现成的。

document.writeln("

href=\"javascript:void((function(s,d,e){try{}catch(e){}var

f=\'http:\/\/\/share\/share.php?\',u=d.location.href,p =[\'url=\',e(u),\'&title=\',e(d.title),\'&appkey=2924220432\'].join(\ '\');function

a(){if(!window.open([f,p].join(\'\'),\'mb\',[\'toolbar=0,status=0,res izable=1,width=620,height=450,left=\',(s.width-620)\/2,\',top=\',(s.h eight-450)\/2].join(\'\')))u.href=[f,p].join(\'\');};if(\/Firefox\/.t est(erAgent)){setTimeout(a,0)}else{a()}})(screen,document ,encodeURIComponent));\"><\/a>");

document.writeln("<\/a>");

document.writeln("<\/a>");

document.writeln("