zoukankan      html  css  js  c++  java
  • 分享功能

    <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>
  • 相关阅读:
    Python中的字典
    Python中的元组
    Python中常见的公共方法
    Python中的列表
    Python的循环语句
    Python的流程控制
    Kubernetes-kubectl命令出现错误【The connection to the server localhost:8080 was refused
    nyoj 77-开灯问题 (倍数遍历)
    nyoj 76-超级台阶 (递推)
    nyoj 75-日期计算 (闰年与平年的判断)
  • 原文地址:https://www.cnblogs.com/scottpei/p/2116476.html
Copyright © 2011-2022 走看看