1、带图片分享
javascript:%20(function%20()%20{%20var%20jsCode%20=%20document.createElement(‘script’);jsCode.setAttribute(‘src’,%20’http://static.fanfou.com/js/bm_img_share.js’);jsCode.setAttribute(‘charset’,%20’utf-8′);document.body.appendChild(jsCode);%20}());
会截取网页上的图片分享到饭否并且保存网页图片到饭否照片中。
2、不带图片分享
javascript:var d=document,w=window,f=’http://fanfou.com/share’,l=d.location,e=encodeURIComponent,p=’?u=’+e(l.href)+’&t=’+e(d.title)+’&d=’+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+’&s=bm’;a=function(){if(!w.open(f+’r’+p,’sharer’,’toolbar=0,status=0,resizable=0,width=600,height=400′))l.href=f+’.new’+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}void(0)
不截取网页上的图片,只分享链接文字。