• 分享功能


    <a href="http://help.360buy.com/help/question-134.html" target="_blank" title="查看推荐有礼规则">推荐有礼</a>:</span>
          <div>
          <a href="javascript:void(0)" onclick="jdPshowRecommend('http://v.t.sina.com.cn/share/share.php?appkey=2445336821','sina')" id="site-sina" title="推荐到新浪微博">sina</a>
          <a href="javascript:void(0)" onclick="jdPshowRecommend('http://v.t.qq.com/share/share.php?source=1000002&site=http://www.360buy.com','qzone')" id="site-qzone" title="推荐到腾讯微博">qzone</a>
          <a href="javascript:void(0)" onclick="jdPshowRecommend('http://share.renren.com/share/buttonshare/post/1004?','renren')"  id="site-renren" title="推荐到人人">renren</a>
                            <a href="javascript:void(0)" onclick="jdPshowRecommend('http://www.kaixin001.com/repaste/share.php?','kaixing')" id="site-kaixing" title="推荐到开心网">kaixing</a>
          <a href="javascript:void(0)" onclick="jdPshowRecommend('http://www.douban.com/recommend/?','douban')"  id="site-douban" title="推荐到豆瓣">douban</a>           
          <a href="javascript:void(0)" onclick="jdPshowRecommend('http://profile.live.com/badge/?','MSN')" id="site-msn" title="推荐到MSN">msn</a>
          <a href="javascript:void(0)" id="site-qq" title="通过QQ发送链接给好友">qq</a>
          <a target="_blank" href="http://club.360buy.com/jdFriend/tjyl.aspx?product=1000401879" id="site-email" title="邮件" target="_blank">email</a>
          </div>
         </li>
         <script type="text/javascript">
             function jdPshowRecommend(url,stype) {
                 var title = "奥莱克(Alllike) PDVD-A28 平板移动便携式DVD 9寸高清屏 支持TV/USB/插卡/游戏/耳机 黑色";
                 var content = "我在@京东商城 发现了一个非常不错的商品:奥莱克(Alllike) PDVD-A28 平板移动便携式DVD 9寸高清屏 支持TV/USB/插卡/游戏/耳机 黑色,京东价:¥655.00。感觉不错,分享一下";
                 var img ="http://img10.360buyimg.com/n1/5308/faf618c4-0154-4c1a-a518-81b19f2c744e.jpg";
                 var productUrl ="http://www.360buy.com/product/1000401879.html?sid=";
                 var pin = readCookie("pin")||"";
                 if (stype == "qzone") {
                     url = url + "&title=" + content + "&pic=" + img + "&url=" + productUrl + pin;
                 }
                 if (stype == "sina") {
                     url = url + "&title=" + content + "&pic=" + img + "&url=" + productUrl + pin;
                 }
                 if (stype == "renren") {
                     url = url + "title=" + title +"&content="+ content + "&pic=" + img + "&url=" + productUrl + pin;
                 }
                 if (stype == "kaixing") {
                     url = url + "rtitle=" + title + "&rcontent=" + content + "&rurl=" + productUrl + pin;
                 }
                 if (stype == "douban") {
                     url = url + "title=" + title + "&comment=" + content + "&url=" + productUrl + pin;
                 }
                 if (stype == "MSN") {
                     url = url + "url=" + productUrl + pin + "&title=" + title + "&description=" + content + "&screenshot=" + img;
                 }
                 window.open(encodeURI(url),"","height=500, width=600");
             }
         </script>
  • 相关阅读:
    堆排序
    如何在.Net中使用MongoDB
    二叉树遍历 C#
    对C# 中Readonly的再认识
    对C# 构造函数的理解
    TypeScript学习: 九、TypeScript的泛型
    TypeScript学习: 八、TypeScript的属性接口用法封装ajax
    锚点跳转不改变History
    设计模式笔记—代理模式
    小程序开发二:上手第一个小程序
  • 原文地址:https://www.cnblogs.com/scottpei/p/2116476.html
Copyright © 2020-2023  润新知