① 用js怎麼實現網頁分享功能如分享到:人人,開心網,新浪微博-------我用分享到

以前我也是為了這個問題想了好久,都來都沒想明白,還是我的一個計算機專的同事告訴我的答案,屬你去網路一下 Jiathis 就知道了,它是國內最大的分享按鈕提供商,很多大網站都在用
哦,而且它提供的分享代碼非常全,微博、QQ空間、人人、開心。。。什麼代碼都有!Jiathis分享代碼使用也很簡單,簡單復制黏貼就可以了,希望能幫到你哦。

② 點擊分享至分享到新浪微博或分享到騰訊微博後即可瀏覽,求代碼

Share to view all

③ 如何在其他網站上添加新浪微博的分享按鈕(代碼) 5 [ 標簽:新浪微博,分享按鈕 ] 怎麼添加到其他網頁上

http://open.t.sina.com.cn/wiki/index.php 看看這個你就明白抄了,要創建一個應用,得到AppKey後可以打開這個頁面, http://open.t.sina.com.cn/sharebutton 創建一個按鈕就可以了,把這個按鈕加到你的網頁

④ 第三方分享插件,常見的分享到空間,微博等頁面。求附帶的js代碼及分享頁面

這種第三方分享代碼,一般都是統一從一個第三方網站(例如,網路分享、版Jiathis、AddThis)進行跳轉權。

例如,你的截圖應該是網路分享提供的分享功能。

可以到網路分享官網,點開「一鍵分享」按鈕,測試看看URL參數:
一般就這幾個參數(被分享網址、圖片地址、網頁標題等等):
click=1&url=&uid=&to=mshare&type=text&relateUid=&pic=&title=&key=&sign=on&desc=&comment=&searchPic=0&l=&linkid=&sloc=&apiType=0&buttonType=0&firstime=

如果還有不清楚的,可以點開小樂圖客的分享API介面,逐一查看參數如何使用。

⑤ 求分享到(i貼吧、QQ微博)的代碼

收藏到QQ書簽
<a rel="nofollow" class="fav_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)">QQ書簽</a>
分享到QQ空間
<a title="分享到QQ空間" href="javascript:(function(){window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+ encodeURIComponent(location.href)+ '&title='+encodeURIComponent(document.title),'_blank');})()"><img src="更換成自己的圖片地址" alt="Qzone一鍵分享" border="0"></a>

新浪微博分享代碼:

<a href="java script:(function(){window.open('http://v.t.sina.com.cn/share/share.php?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&source=bookmark','_blank','width=450,height=400');})()" title="新浪微博分享"><img src="更換成自己的圖片地址" border="0">分享到新浪微博</a>

不知道I貼吧的,我也想知道啊!

⑥ php 分享到微博,微信的代碼如何寫

你網路「網路分享」裡面有各種分享代碼, 你照著那個來寫就好了。

⑦ 求分享QQ空間和微博的代碼

QQ空間分享代碼如下:

<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;" title="分享到QQ空間"><img src="http://qzonestyle.gtimg.cn/ac/qzone_v5/app/app_share/qz_logo.png" alt="分享到QQ空間" /></a>
新浪微博分享代碼如下:

<script type="text/javascript">document.write('<iframe frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?url=%url%&appkey=&type=3" width="16" height="16"></iframe>'.replace(/%url%/,encodeURIComponent(location.href)));</script>
騰訊微博分享代碼如下:

<a href="javascript:void(0)" onclick="postToWb();" class="tmblog"><img src="http://v.t.qq.com/share/images/s/weiboicon16.png"></a> <script type="text/javascript">

function postToWb(){

var _t = encodeURI(document.title);

var _url = encodeURI(document.location);

var _appkey = encodeURI("appkey");//你從騰訊獲得的appkey

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

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' );

}

</script>
QQ朋友社區分享代碼如下:

<a href="javascript:void(0);" onclick="window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?to=pengyou&url='+encodeURIComponent(document.location.href));return false;" title="分享到朋友社區"><img src="http://qzonestyle.gtimg.cn/ac/qzone_v5/app/qzshare/xy-icon.png" alt="分享到朋友社區" /></a>
這里發個自己DIY的分享代碼,喜歡的可以拿去用,預覽圖如下

圖片素材在壓縮包里,代碼內容如下,保存為js文件即可,壓縮包里也有現成的。

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),\'&appkey=2924220432\'].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));\"><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;\"><img src=\"qzone.gif\" \/><\/a>");

document.writeln("<a href=\"javascript:void(0)\" onclick=\"postToWb();\"><img src=\"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 _appkey = encodeURI(\"appkey\");\/\/你從騰訊獲得的appkey");

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+\'&appkey=\'+_appkey+\'&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..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\"><img src=\".gif\" \/><\/a>");

⑧ 分享到新浪微博代碼

<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="http://service.weibo.com/staticjs/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
})()
</script>

上面是分享按鈕的JS 如果你要傳圖片 直接把 圖片地址放到圖片的路徑上 多張圖片用「|」分割 路徑必須是可以在瀏覽器顯示的完整路徑 比如:http://xyhis.gdouca.com/images/xzindex_04.jpg

PS:好像現在這個分享按鈕升級了 舊版的不行了

⑨ 分享到微博代碼 如何知道是否成功

進入微博查看

⑩ 誰可以幫我把這段新浪微博分享代碼轉成vB用的。 下面這個是,官方,JS代碼。求高手轉一下,越簡單越好。

最近發現一個好玩的微博!大家可以去看一下!!!分享精神