① 用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代码。求高手转一下,越简单越好。

最近发现一个好玩的微博!大家可以去看一下!!!分享精神