QQ空间分享代码如下

电脑杂谈  发布时间:2020-02-24 14:00:43  来源:网络整理

人人分享到qq空间_qq空间分享_qq空间 分享 朋友圈

QQ 空间分享代码如下: <a href="javascript:void(0);"onclick="window.open(' om/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(docume nt.location.href));return false;"title="分享到 QQ 空间"><img src=" "alt="分享到 QQ 空间"/></a> 新浪微博分享代码如下: <script type="text/javascript">document.write('<iframe frameborder="0" scrolling="no" src="%url%&aey=&type= 3" width="16" height="16"></iframe>'.replace(/%url%/,encodeURIComponent(location.hr ef)));</script> 腾讯微博分享代码如下: <a href="javascript:void(0)"onclick="postToWb();"class="tmblog"><imgsrc= ";></a><script type="text/javascript"> functionpostToWb(){ var_t = encodeURI(document.title); var_url = encodeURI(document.location); var_aey = encodeURI("aey");//你从腾讯获得的 aey var_pic = encodeURI('');//(列如:var _pic='图片 url1|图片 url2|图片 url3....) var_site = '';//你的网站地址 var _u = '#39;+_t+'&url='+_url+'&aey=' +_aey+'&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> QQ 朋友社区分享代码如下: <a href="javascript:void(0);" onclick="window.open(' hare_onekey?to=pengyou&url='+encodeURIComponent(document.location.hre f));return false;" title="分享到朋友社区"><img src="; alt="分享到朋友社区" /></a> 这里发个自己 DIY 的分享代码qq空间分享,喜欢的可以拿来用qq空间分享,预览图如下图片素材在压缩包里,代码内容如下,保存为 js 文件就能,压缩包里还有现成 的。

qq空间 分享 朋友圈_qq空间分享_人人分享到qq空间

document.writeln("<a 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),\'&aey=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(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document ,encodeURIComponent));\"><img src=\"sina.gif\" \/><\/a>"); document.writeln("<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;\"><imgsrc=\"qzone.gif\" \/><\/a>"); document.writeln("<a href=\"javascript:void(0)\" onclick=\"postToWb();\"><imgsrc=\"sq.gif\" \/><\/a>"); document.writeln("<script type=\"text\/javascript\">function postToWb(){"); document.writeln("var _t = encodeURI(document.title);"); document.writeln("var _url = encodeURI(document.location);");document.writeln("var _aey = encodeURI(\"aey\");\/\/你从腾讯获得 的 aey"); document.writeln("var _pic = encodeURI(\'\');\/\/(列如:var _pic=\' 图片 url1|图片 url2|图片 url3....)"); document.writeln("var _site = \'\';\/\/你的网站地址"); document.writeln("var _u = \'http:\/\/v.t.qq.com\/share\/share.php?title=\'+_t+\'&url=\'+_url+\' &aey=\'+_aey+\'&site=\'+_site+\'&pic=\'+_pic;"); document.writeln("window.open( _u,\'转播到腾讯微博\', \'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no\' );}<\/script>"); document.writeln("<a href=\"javascript:window.open(\'http:\/\/cang.baidu.com\/do\/add?it=\ '+encodeURIComponent(document.title.substring(0,76))+\'&iu=\'+encodeU RIComponent(location.href)+\'&fr=ien#nw=1\',\'_blank\',\'scrollbars=n o,width=600,height=450,left=75,top=20,status=no,resizable=yes\'); void 0\"><imgsrc=\"baidu.gif\" \/><\/a>");


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-141915-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...