1、新浪微博
<script type="text/javascript" charset="utf-8">
(function(){
var _w = 72 , _h = 16;
唐艺昕的家世 var param = {
url:location.href,
type:'3',
count:'1', /**是否显示分享数,1显示(可选)*/
专业排行榜 appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
pic:'', /**分享图片的路径(可选)*/
ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/
language:'zh_cn', /**设置语言,zh_cn|zh_tw(可选)*/
dpc:1
}
var temp = [];
for( var p in param ){
temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
}
document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="service.weibo/staticjs/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
})()
</script>
2、腾讯空间
<script type="text/javascript">
(function(){
var p = {
url:location.href,
showcount:'1',/*是否显示分享总数,显示:'1',不显示:'0' */
desc:'',/*默认分享理由(可选)*/
summary:'',/*分享摘要(可选)*/
title:'',/*分享标题(可选)*/
site:'',/*分享来源 如:腾讯网(可选)*/
东方不败之风云再起插曲pics:'', /*分享图片的路径(可选)*/
style:'203',
width:98,
height:22
};
var s = [];
for(var i in p){
s.push(i + '=' + encodeURIComponent(p[i]||''));
}
document.write(['<a version="1.0" class="qzOpenerDiv" href="sns.qzone.qq/cgi-bin/qzshare/cgi_qzshare_onekey?',s.join('&'),'" target="_blank">分享</a>'].join(''));
})();
</script>
<script src="img/qzone/app/qzlike/qzopensl.js#jsdate=20111201" charset="utf-8"></script>
3、腾讯微博
<a href="javascript:void(0)" onclick="postToWb();" class="tmblog"><img src="v.t.qq/share/images/s/weiboicon16.png"></a> <script type="text/javascript">
function postToWb(){
var _t = encodeURI(document.title);
function postToWb(){
var _t = encodeURI(document.title);
var _url = encodeURI(document.location);
var _appkey = encodeURI("appkey");//你从腾讯获得的appkey
var _pic = encodeURI('');//(列如:var _pic='图片url1|图片url2|图片)
var _site = '';//你的网站地址
var _u = 'v.t.qq/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>
var _appkey = encodeURI("appkey");//你从腾讯获得的appkey
var _pic = encodeURI('');//(列如:var _pic='图片url1|图片url2|图片)
var _site = '';//你的网站地址
var _u = 'v.t.qq/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>
4、人人网
<script type="text/javascript" src="/js/rrshare.js"></script>
<a name="xn_share" onclick="shareClick()" type="icon_medium" href="javascript:;"></a>
<script type="text/javascript">
function shareClick() {
var rrShareParam = {
resourceUrl : '', //分享的资源Url
srcUrl : '', //分享的资源来源Url,默认为header中的Referer,如果分享失败可以调整此值为resourceUrl试试
pic : '', //分享的主题图片Url
title : '', //分享的标题
description : '' //分享的详细描述
};
rrShareOnclick(rrShareParam);
}
</script>
5、网易
<script type="text/javascript" charset="utf-8"> (function() { function showKeyShare(){ var param=[],ustr=[]; param[0] = 'key=aNlaHmpG8w7VKvNj'; //转发来源 param[1] = 'url=' + window.location.href; //当前页网址 param[2] = 'togImg=true'; //默认显示转发图片(可选,删除true为不显示) param[3] = 'images='; //images为传过来的图片地址,多个图片地址用","隔开;若为空会自动抓取转发页面图片 url = '163/share?'; url += param.join("&"); ustr[0] = 'height=330,width=550,top=' + (screen.height - 280) / 2 ; ustr[1] = 'left=' + (screen.width - 550) / 2 ; ustr[2] = 'toolbar=no, menubar=no, scrollbars=no,'; ustr[2] += 'resizable=yes,location=no, status=no'; var s=ustr.join(','); window.open(url,'newwindow',s); }; window.showKeyShare=showKeyShare; })(); </script> <a href="javascript:;" onclick="showKey
Share()" > </a>
6、一键分享
6、一键分享
<div class="bsync-custom icon-blue"><a title="一键分享到各大微博和社交网络" class="bshare-bsync" onclick="javascript:bSync.share(event)">一键分享</a><span class="BSHARE_COUNT bshare-share-count">0</span></div> <script type="text/javascript" charset="utf-8" src="static.bshare/b/bsync.js#uuid="></script>
7、百度搜藏
把悲伤留给自己<a href="javascript:var u=location.href;var t=document.title;t=t.substr(0,80)+'';var c=''+(Selection():Selection():ateRange().text);c=c.substr(0,280);var e=encodeURIComponent;var url='cang.baidu/do/add?it='+e(t)+'&iu='+e(u)+'';wi
ndow.open(url,'','toolbar=0,resizable=1,scrollbars=yes,status=1,width=600,height=450');void(0)">百度搜藏</a>
百度空间
<a href="javascript:var u=location.href;var t=document.title;t=t.substr(0,80)+'';var c=''+(Selection():Selection():ateRange().text);c=c.substr(0,280);var e=encodeURIComponent;var url='apps.hi.baidu/share/?url='+e(u)+'&title='+e(t)+'';window.open(url,'','toolbar=0,resizable=1,scrollbars=yes,status=1,width=600,height=450');void(0)">分享到百度空间</a>
8、分享到开心网:
<script type="text/javascript">
<script type="text/javascript">
document.writeln("<a href=\"javascript:window.open(\'http:\/\/www.kaixin001\/repaste\/share.php?rtitle=\'+encodeURIComponent(document.title.substring(0,76))+\'&rurl=\'+encodeURIComponent(location.href)+\'&rcontent=<%=description%>\',\'_blank\',\'scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes\'); void 0\" style=\"color:#000000;text-decoration:none;font-size:12px;font-weight:normal\"><img alt=\"分享到开心网\" src=\"元旦法定节假日几天假static.51mdq/images/kaixin.gif\" /><\/a>");
</script>
</script>
9、腾讯朋友
<script type="text/javascript">
(function(){
var p = {
url:location.href,
to:'pengyou',
desc:'',/*默认分享理由(可选)*/
summary:'',/*摘要(可选)*/
title:'',/*分享标题(可选)*/
site:'',/*分享来源 如:腾讯网(可选)*/
pics:'' /*分享图片的路径(可选)*/
};
var s = [];
for(var i in p){
关于冬天的成语s.push(i + '=' + encodeURIComponent(p[i]||''));
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论