fenxiang.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <style type="text/css">
  2. .fenxiang{width: 148px;padding:0 0 0 0;font-size:12px;float:left;}
  3. .fenxiang #weixinfx{float:left;border:#D2D8D8 solid 1px;width:347px;padding:0 0 10px 0;margin:30px 0 0 -39px;background-color:#fff;position:absolute;}
  4. .fenxiang #weixinfx .s1{float:left;margin:10px 0 0 5px;width:250px;height:25px;border-bottom: #FF3C00 solid 2px;font-size:14px;font-weight:700;}
  5. .fenxiang #weixinfx .s2{float:left;margin:15px 0 0 0;width:87px;height:20px;border-bottom: #FF3C00 solid 2px;text-align:right;}
  6. .fenxiang #weixinfx .s2 img{cursor:pointer;}
  7. .fenxiang #weixinfx .s3{float:left;width:150px;margin:10px 0 0 0;text-align:center;}
  8. .fenxiang #weixinfx .s4{float:left;width:190px;line-height:24px;margin:17px 0 0 0;}
  9. .fenxiang a{float:left;width:24px;height:24px;margin:0 5px 0 0;}
  10. .fenxiang .a1{background:url(<?=weburl?>img/fenxiang/fx1.gif) left top no-repeat;}
  11. .fenxiang .a2{background:url(<?=weburl?>img/fenxiang/fx2.gif) left top no-repeat;}
  12. .fenxiang .a3{background:url(<?=weburl?>img/fenxiang/fx3.gif) left top no-repeat;}
  13. .fenxiang .a4{background:url(<?=weburl?>img/fenxiang/fx4.gif) left top no-repeat;}
  14. </style>
  15. <script language="javascript">
  16. function weixinfxonc(x){
  17. if(0==x){document.getElementById("weixinfx").style.display="none";}
  18. else{document.getElementById("weixinfx").style.display="";}
  19. }
  20. </script>
  21. <div class="fenxiang">
  22. <div id="weixinfx" style="display:none;">
  23. <span class="s1">扫描二维码,分享到微信</span>
  24. <span class="s2"><img src="<?=weburl?>img/fenxiang/clo.gif" onClick="weixinfxonc(0)" /></span>
  25. <span class="s3"><img src="<?=weburl?>tem/getqr.php?u=<?=$fxurl?>&size=4" width="110"></span>
  26. <span class="s4">打开微信<br>使用"扫一扫"<br>再点击微信界面右上角三个点标志<br>分享到微信朋友和朋友圈。</span>
  27. </div>
  28. <a href="javascript:void(0)" onClick="weixinfxonc(1)" class="a3"></a>
  29. <a href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<?=$fxurl?>&title=<?=$fxtit?>&pics=<?=$fxtp?>" class="a1" target="_blank"></a>
  30. <script type="text/javascript">
  31. (function(){
  32. var p = {
  33. url:'<?=$fxurl?>', /*获取URL,可加上来自分享到QQ标识,方便统计*/
  34. desc:'', /*分享理由(风格应模拟用户对话),支持多分享语随机展现(使用|分隔)*/
  35. title:'<?=$fxtit?>', /*分享标题(可选)*/
  36. summary:'', /*分享摘要(可选)*/
  37. pics:'<?=$fxtp?>', /*分享图片(可选)*/
  38. flash: '', /*视频地址(可选)*/
  39. site:'QQ分享', /*分享来源(可选) 如:QQ分享*/
  40. style:'202',
  41. width:24,
  42. height:24
  43. };
  44. var s = [];
  45. for(var i in p){
  46. s.push(i + '=' + encodeURIComponent(p[i]||''));
  47. }
  48. document.write(['<a class="a2" href="https://connect.qq.com/widget/shareqq/index.html?',s.join('&'),'" target="_blank"></a>'].join(''));
  49. })();
  50. </script>
  51. <script src="static/loadqq.js" widget="shareqq" charset="gbk"></script>
  52. <? if(check_in("https:",weburl)){$sinatp=$fxtp;}?>
  53. <a href="https://service.weibo.com/share/share.php?title=<?=$fxtit?>&url=<?=$fxurl?>&pic=<?=$sinatp?>" class="a4" target="_blank"></a>
  54. </div>