300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 转发至新浪微博 开心网 腾讯微博 人人网代码分享!

转发至新浪微博 开心网 腾讯微博 人人网代码分享!

时间:2020-02-22 04:23:17

相关推荐

转发至新浪微博 开心网 腾讯微博 人人网代码分享!

转载地址: /learning/forwarded-sina-happy-tencent-sharing-network.html

用以下代码前如有需求可申请新浪微博跟腾讯微博的APPKEY,点这里申请新浪微博,点这里申请腾讯微博,申请后即可替换以下代码中的appkey。

新浪微博分享代码: <a href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v./share/share.php?',u=d.location.href,p=['url=',e(u),'&amp;title=',e(d.title),'&amp;appkey=3486983565'].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));" title="分享到新浪微博" class="s1"> </a>

腾讯微博分享代码:

<a href="javascript:void(0)" οnclick="postToWb();" close="tmblog" class="s2" title="分享到腾讯微博"></a>

<script type="text/javascript">

function postToWb(){

var _t = encodeURI(document.title);

var _url = encodeURIComponent(document.location);

var _appkey = encodeURI("571330b45a5044939d9acd6abc0d0a7b");

var _pic = encodeURI('');//(例如:var _pic='图片url1|图片url2|图片url3....)

var _site = '';

var _u = 'http://v./share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t;

window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );

}

</script>

搜狐微博分享代码:

<a href="javascript:void((function(s,d,e,r,l,p,t,z,c){var f='/third/post.jsp?',u=z||d.location,p=['&url=',e(u),'&title=',e(t||d.title),'&content=',c||'gb2312','&pic=',e(p||'')].join('');function%20a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=660,height=470,left=',(s.width-660)/2,',top=',(s.height-470)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,'','','','','','utf-8'));" title="分享到搜狐微博" class="s3"> </a>

人人网分享代码:

<a href="javascript:window.open('/share/buttonshare.do?title='+encodeURIComponent(document.title.substring(0,76))+'&amp;link='+encodeURIComponent(location.href)+'&amp;content=','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0" title="分享到人人网" class="s4"> </a>

开心网分享代码:

<a href="javascript:window.open('/repaste/share.php?rtitle='+encodeURIComponent(document.title.substring(0,76))+'&amp;rurl='+encodeURIComponent(location.href)+'&amp;rcontent=','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0" title="分享到开心网" class="s5"> </a>

豆瓣网分享代码:

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="分享到豆瓣网" class="s6"> </a>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。