首页 新闻 搜索 专区 学院

关于网站内容分享到微博,腾讯,开心网

0
悬赏园豆:20 [已解决问题] 解决于 2014-03-27 15:42
1  <a href="javascript:void(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://share.renren.com/share/buttonshare.do?link='+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()}})()" title="分享到人人网"><img ID="Image1" src="/images/share/renren.jpg"  alt="转载到人人网" /></a>
2                     &nbsp;&nbsp;&nbsp;
3                     <a href="javascript:void(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)+'&content=utf-8'+'&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()}})()" title="分享到豆瓣网"><img src="/images/share/douban.jpg" alt="转载到豆瓣网" /></a>
4                     &nbsp;&nbsp;&nbsp;
5                     <a href="javascript:void(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://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?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()}})()"  title="分享到QQ分享"><img ID="Image2" src="/images/share/Qzone.jpg" alt="转载到QQ分享" /></a>
6                     &nbsp;&nbsp;&nbsp;
7                     <a href="javascript:void(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.kaixin001.com/repaste/share.php?rurl='+e(d.location.href)+'&rtitle='+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()}})()" title="分享到开心网"><img ID="Image3" src="/images/share/kaixin.jpg" alt="转载到开心网" /></a>
View Code

代码如上,已经可以将网站标题那些分享出来了,但是我再想分享图片要怎样处理?

banyan.rong的主页 banyan.rong | 初学一级 | 园豆:67
提问于:2014-03-18 23:47
< >
分享
最佳答案
0

已经自行解决

banyan.rong | 初学一级 |园豆:67 | 2014-03-21 11:32
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册