zoukankan      html  css  js  c++  java
  • 【几个常见的分享按钮】(非JiaThis)

    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);
        }
  • 相关阅读:
    linux基础
    Jscript复选框
    Java 常用的几个算法(菜鸟初学)
    Hello World!
    调用快递鸟接口实现丰密面单打印 顺丰隐私面单 C#版
    快递单号智能识别API接口
    快递鸟开放平台API对接新手指南 极兔速递为例
    打印顺丰快递电子面单步骤 快递鸟教程
    打印京东电子面单步骤 快递鸟教程
    如何使用快递鸟打印顺丰电子面单
  • 原文地址:https://www.cnblogs.com/ccto/p/3116980.html
Copyright © 2011-2022 走看看