QQ空间分享代码如下

2022-05-19 18:49:22   第一文档网     [ 字体: ] [ 阅读: ] [ 文档下载 ]
说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。下载word有问题请添加QQ:admin处理,感谢您的支持与谅解。点击这里给我发消息

#第一文档网# 导语】以下是®第一文档网的小编为您整理的《QQ空间分享代码如下》,欢迎阅读!
如下,代码,分享,空间

QQ空间分享代码如下:





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空间">

src="http://qzonestyle.gtimg.cn/ac/qzone_v5/app/app_share/qz_logo.png"alt="分享到QQ空间"/>
新浪微博分享代码如下:





腾讯微博分享代码如下:





href="javascript:void(0)"onclick="postToWb();"class="tmblog">"http://v.t.qq.com/share/images/s/weiboicon16.png">


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





onclick="window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?to=pengyou&url='+encodeURIComponent(document.location.href));return false;" title="分享到朋友社区">

src="http://qzonestyle.gtimg.cn/ac/qzone_v5/app/qzshare/xy-icon.png" alt="分享到朋友社区" />


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



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



document.writeln("

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

f=\'http:\/\/v.t.sina.com.cn\/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,resizable=1,width=620,height=450,left=\',(s.width-620)\/2,\',top=\',(s.height-450)\/2].join(\'\')))u.href=[f,p].join(\'\');};if(\/Firefox\/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}}(screen,document,encodeURIComponent));\"><\/a>");



document.writeln("


onclick=\"window.open(\'http:\/\/sns.qzone.qq.com\/cgi-bin\/qzshare\/cgi_qzshare_onekey?url=\'+encodeURIComponent(document.location.href));return false;\"><\/a>");



document.writeln("


onclick=\"postToWb();\"><\/a>");



document.writeln("

本文来源:https://www.dywdw.cn/fce909825f0e7cd185253688.html

相关推荐
推荐阅读