<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />.
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<script type="text/javascript">
function showLayers(){
if(!document.getElementById("shareLayer")) return false;
if(!document.getElementById("l_box")) return false;
var layerId = document.getElementById("shareLayer");
var lBoxId = document.getElementById("l_box");
if(layerId.offsetWidth == 30){
layerId.style.width = "180px"
lBoxId.style.display = "block";
}else{
layerId.style.width = "30px"
lBoxId.style.display = "none";
}
}
/*title是標題,rLink鏈接,summary內容,site分享來源,pic分享圖片路徑*/
/*新浪微博*/
function shareTSina(title,rLink,site,pic){
window.open('http://service.weibo.com/share/share.php?title='+encodeURIComponent(title)+'&url='+encodeURIComponent(rLink)+'&appkey='+encodeURIComponent(site)+'&pic='+encodeURIComponent(pic),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes')
}
/*騰訊微博*/
function shareToWb(title,rLink,site,pic){
window.open('http://v.t.qq.com/share/share.php?url='+encodeURIComponent(rLink)+'&title='+encodeURI(title)+'&appkey='+encodeURI(site)+'&pic='+encodeURI(pic),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes')
}
/*人人*/
function shareRR(title,rLink,summary){
window.open('http://widget.renren.com/dialog/feed?title='+encodeURIComponent(title)+'&link='+encodeURIComponent(rLink)+'&description='+encodeURIComponent(summary),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');
}
/*開心網*/
function shareKX(title,rLink,summary){
window.open('http://www.kaixin001.com/repaste/bshare.php?rtitle='+encodeURIComponent(title)+'&rurl='+encodeURIComponent(rLink)+'&rcontent='+encodeURIComponent(summary),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'
)
}
/*QQ空間*/
function shareQzone(title,rLink,summary,site,pic){
window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title='+encodeURIComponent(title)+'&url='+encodeURIComponent(rLink)+'&summary='+encodeURIComponent(summary)+ '&site='+encodeURIComponent(site)+'&pics='+encodeURIComponent(pic),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes')
}
/*百度*/
function shareBaiDu(title,rLink){
window.open('http://apps.hi.baidu.com/share?title='+encodeURIComponent(title)+'&url='+encodeURIComponent(rLink),'_blank','scrollbars=no,width=600,height=560,left=75,top=20,status=no,resizable=yes')
}
/*豆瓣*/
function shareDouBan(title,rLink){
window.open('http://www.douban.com/recommend?title='+encodeURIComponent(title)+'&url='+encodeURIComponent(rLink),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes')
}
</script>
<div id="shareLayer">
<div id="s_btn" οnclick="showLayers()">00000000000</div>
<div id="l_box">
<a href="javascript:void(0)" οnclick="shareTSina('測試標題','http://www.ps-css.com','轉貼網站','圖片地址')">新浪微博</a>
<a href="javascript:void(0)" οnclick="shareQzone('測試標題','http://www.ps-css.com','測試內容','轉貼網站','圖片地址')">QQ空間</a>
<a href="javascript:void(0)" οnclick="shareRR('測試標題','http://www.ps-css.com','woshineirong');">人人網</a>
<a href="javascript:void(0)" οnclick="shareKX('測試標題','http://www.ps-css.com','測試內容')">開心網</a>
<a href="javascript:void(0)" οnclick="shareToWb('測試標題','http://www.ps-css.com','轉貼網站','圖片地址');">騰訊微博</a>
<a href="javascript:void(0)" οnclick="shareBaiDu('測試標題','http://www.ps-css.com');">百度</a>
<a href="javascript:void(0)" οnclick="shareDouBan('測試標題','http://www.ps-css.com');">豆瓣</a>
</div>
</div>
</BODY>
</HTML>
微博分享接口
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.