主流微博/空间分享

15 篇文章 0 订阅
12 篇文章 0 订阅
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>分享</title>
<style>
/*微博分享*/
.news_fav a{background:url("http://hi.csdn.net/attachment/201111/10/0_1320927335vEIt.gif") no-repeat scroll 0 0 transparent;float:left;margin:5px 15px 0px 0px;line-height:18px;display:block;float:left;width:18px;height:18px;}
.news_fav a{color:#333333;}
.news_fav  span.hbn_fav_mx{background:none;width:18px;height:18px;float:left;overflow:hidden;margin:5px 15px 0px 0px;padding-left:0px;}
span.hbn_fav_mx a{background-position: 0px -1px;overflow:hidden;padding-left:18px;width:0px;height:18px;margin:0 0;}
a.hbn_fav_sinamb{background-position: 0px -39px;}
a.hbn_fav_qqweibo{background-position: 0px -72px;}
a.hbn_fav_sinavi{background-position: 0px -108px;}
a.hbn_fav_renren{background-position: 0px -144px;}
a.hbn_fav_douban{background-position: 0px -180px;}
a.hbn_fav_qq{background-position: 0px -216px;}
a.hbn_fav_qqk{background-position: 0px -252px;}
a.hbn_fav_baidu{background-position: 0px -288px;}
a.hbn_fav_wangyi{background-position: 0px -324px;}
a.hbn_fav_kaixin{background-position: 0px -360px;}
</style>
</head>
<body>
<div class="news_fav"><h2 class="boder_b4">我要分享这篇资讯</h2>
<p>
<span class="hbn_fav_mx" ><a title="加入到我的收藏" href="/user/favorite/22/190327/?op=add" target="_balnk">美学收藏</a></span>
<a class="hbn_fav_sinamb" title="转帖到新浪微博" href="javascript:void((function(s,d,e,smb,r,l,p,t,z,c){var%20f='http://v.t.sina.com.cn/share/share.php?appkey='+(smb||1),u=z||d.location,p=['&url=',e(u),'&title=',e(t||d.title),'&source=',e(r),'&sourceUrl=',e(l),'&content=',c||'utf-8','&pic=',e(p||'')].join('');function%20a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=440,height=430,left=',(s.width-440)/2,',top=',(s.height-430)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,2317204744));" ></a> 
<a class="hbn_fav_qqweibo" title="转播到腾讯微博" href="javascript:void(0)" οnclick="postToWb();"    ></a>           
<a class="hbn_fav_sinavi" title="分享到搜狐微博" href="javascript:void((function(s,d,e,r,l,p,t,z,c){var f='http://t.sohu.com/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'));"  ></a>
<a class="hbn_fav_renren" title="转帖到人人" href="javascript:window.open('http://www.connect.renren.com/sharer.do?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'sharer'+Math.random().toString().slice(3), 'toolbar=0,status=0,width=550,height=400');void 0;" ></a> 			
<a class="hbn_fav_douban" title="转帖到豆瓣" href="javascript:(function(){var d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:'',r='http://www.douban.com/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();}})();void 0;"></a> 
<a class="hbn_fav_qq" title="转帖到QQ收藏" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)" ></a>
<a class="hbn_fav_qqk" title="转帖到QQ空间"href="javascript:window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'sharer'+Math.random().toString().slice(3), 'toolbar=0,status=0,width=550,height=400');void 0;" ></a> 
<a class="hbn_fav_baidu" title="转帖到百度搜藏" href="javascript:window.open('http://cang.baidu.com/do/add?it='+encodeURIComponent(document.title.substring(0,76))+'&iu='+encodeURIComponent(location.href)+'&fr=ien#nw=1','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0"></a>    
<a class="hbn_fav_wangyi" title="转播到网易微博" href="javascript:;" οnclick='show163Window()' > </a> 
<a class="hbn_fav_kaixin" title="转帖到开心"href="javascript:window.open('http://www.kaixin001.com/repaste/bshare.php?rtitle='+encodeURIComponent(document.title)+'&rurl='+encodeURIComponent(location.href)+'&rcontent='+encodeURIComponent(document.title),'_blank','scrollbars=yes,status=yes,resizable=yes,width=960,height=630');void 0;" ></a>      
</p>
</div> 
 <script>
 //转播到腾讯微博
   function postToWb(){ 
        var _t = encodeURI(document.title);
        var _url = encodeURIComponent(document.location); 
        var _appkey = encodeURI("appkey"); 
        var _pic = encodeURI(''); 
        var _site = '';  
        var _u = 'http://v.t.qq.com/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' ); 
    } 	
//网易
	(function() {
function show163Window(){
var param=[],ustr=[];
param[0] = 'link=http://open.t.163.com/';  //link为网站域名
param[1]='source=' + encodeURIComponent('网易微博开放平台');  //source为网站名称
param[2]='info='+encodeURI(document.title);  //info为转发的文字内容(可选,默认为页面title)
param[3]='';  //images为传过来的图片地址,多个图片地址用","隔开
param[4]='togImg=false';  //默认显示转发图片(可选,删除true为不显示)
var url='http://t.163.com/article/user/checkLogin.do?';
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.show163Window=show163Window;
})();
</script> 

 
 
</body>
</html>


 

 

效果:

使用的图片:

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值