【いくつかの共通の共有ボタン】(JiaThisではない)
4205 ワード
function share(name, _href, _title) {
var url = "";
if (name == "hexun") {
url = "http://t.hexun.com/channel/shareweb.aspx?url=" + encodeURIComponent(_href) + "&title=" + encodeURIComponent(_title);
}
if (name == "sina") {
url = "http://v.t.sina.com.cn/share/share.php?url=" + encodeURIComponent(_href) + "&title=" + encodeURIComponent(_title);
}
if (name == "qq") {
url = "http://v.t.qq.com/share/share.php?url=" + encodeURIComponent(_href) + "&title=" + encodeURIComponent(_title);
}
if (name == "sohu") {
url = "http://t.sohu.com/third/post.jsp?&url=" + escape(_href) + "&title=" + escape(_title);
}
if (name == "qzone") {
url = "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + encodeURIComponent(_href) + "&desc=" + encodeURIComponent(_title);
}
if (name == "renren") {
url = "http://share.renren.com/share/buttonshare.do?link=" + encodeURIComponent(_href) + "&title=" + encodeURIComponent(_title);
}
if (name == "douban") {
url = "http://www.douban.com/recommend/?url=" + encodeURIComponent(_href) + "&title=" + encodeURIComponent(_title);
}
window.open(url);
}
&噫13;
Dcument.getElemenntById.onclick=function(e){唵13;
var targt=e.srcellement𞓜e.target;&菗13;
if(target.nodeName=="A"){&萶13;
share(target.get Attribute(「name」)、locatitions.href、「tilteOrContint」);
}&{13;
&噫13;
}&{13;
function share(name,href,_title){&菗13;
var url=“”&〹13;
if(name=="hexun"){&菗13;
url="http://t.hexun.com/channel/shareweb.aspx?url=「+エンコーディング+」&title=「+encodeURIComponent」&_title 13;
}&{13;
if(name==「sina」){&腣13;
url="http://v.t.sina.com.cn/share/share.php?url=「+エンコーディング+」&title=「+encodeURIComponent」&_title 13;
}&{13;
if(name=="qq"){&唵13;
url="http://v.t.qq.com/share/share.php?url=「+エンコーディング+」&title=「+encodeURIComponent」&_title 13;
}&{13;
if(name=="sohu"){&腣13;
url="http://t.sohu.com/third/post.jsp?&url=「+escape+」&title=「+escape」&唴13;
}&{13;
if(name=="qzone"){&菗13;
url="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=「+エンコーディング+」&desc=「+encodeURIComponent」&_title 13;
}&{13;
if(name==renren){&菗13;
url="http://share.renren.com/share/buttonshare.do?link=「+エンコーディング+」&title=「+encodeURIComponent」&_title 13;
}&{13;
if(name=="douban"){&菗13;
url="http://www.douban.com/recommend/?url=「+エンコーディング+」&title=「+encodeURIComponent」&_title 13;
}&{13;
window.open;
}&{13;