//alert("ok"); function share(where,title,href,pic) { href = href.replace('&','%26'); switch(where){ case 'qq': url = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+href; window.open(url); break; case 'kaixin': url = 'http://www.kaixin001.com/~repaste/repaste.php?rurl='+href+'&rtitle='+title+'&rcontent='+title; window.open(url,'kaixin'); break; case 'renren': url = 'http://share.renren.com/share/buttonshare.do?link='+href+'&title='+title; window.open(url,'renren','toolbar=0,status=0,resizable=1,width=626,height=436,left='+(window.screen.width-626)/2+',top='+(window.screen.height-436)/2); break; case 'sina': if(pic!=null && pic!=""){ var mprand = Math.floor(Math.random()*3); var pic = 'http%3a%2f%2fyiranmeifushi.q88d.net%2fshop%2fimages_shop%2f17376%2f2022-08-29%2f17376_DT2022912118182.jpg'; } var param = { url:href, type:'3', count:'0', /**是否显示分享数,1显示(可选)*/ appkey:'2724682418', /**您申请的应用appkey,显示分享来源(可选)*/ title:title, /**分享的文字内容(可选,默认为所在页面的title)*/ pic:pic, /**分享图片的路径(可选)*/ ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/ rnd:new Date().valueOf() } var temp = []; for( var p in param ){ temp.push(p + '=' + encodeURIComponent( param[p] || '' )) } url = 'http://service.weibo.com/share/share.php?'+temp.join('&')+'&source=bookmark'; window.open(url,'_blank','width=450,height=400'); break; case 'qq_t': url = 'http://v.t.qq.com/share/share.php?title='+title+'&url='+href+'&source=bookmark'; window.open(url,'_blank','width=450,height=400'); break; case 'douban': url = 'http://www.douban.com/recommend/?url='+href+'&title='+title; window.open(url,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'); break; case '163': url = 'http://t.163.com/article/user/checkLogin.do?link=http://www.yoka.com/&source='+ encodeURIComponent('网易新闻')+'&info='+title+ ' '+href+'&'+new Date().getTime(); window.open(url,'163','height=330,width=550,top='+(window.screen.height-280)/2+',left='+(window.screen.width-550)/2+', toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no') break; case 'sohu': url = 'http://t.sohu.com/third/post.jsp?url='+href+'&title='+title+'&content=utf-8&pic='; window.open(url,'mb','toolbar=0,status=0,resizable=1,width=660,height=470,left='+(window.screen.width-660)/2+',top='+(window.screen.height-470)/2); break; } } document.write(""); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write("
分享到:
");