磁云互联

标题: 左下角手机窗口 二维码引导广告 [打印本页]

作者: 磁铁网络    时间: 2021-9-17 11:42
标题: 左下角手机窗口 二维码引导广告
左下角手机窗口 二维码引导广告
支持关闭按钮,支持二维码自动生成

第一步:下载素材包,解压后上传至网站根本目录
(, 下载次数: 2)

第二步,我们进入网站后台 - 模板编辑 修改index.html( 首页文件)
在 </head> 上方加入以下代码
  1. <link href="../../css/style.css" rel="stylesheet" type="text/css">
  2. <script type="text/javascript" src="../../js/jquery-1.4.2.min.js"></script>
复制代码
第三步:在<body> 下方加入以下代码
  1. <div id="mobileFrame" class="" style="position: absolute; z-index: 999; width: 245px; height: 416px; left: 0px; bottom: 20px; padding: 32px 8px; padding-left:9px; padding-right:6px; background-image: url("../../images/small_phone.png");">
  2.     <div id="hidemobile">×</div>
  3.     <div class="qrcode">
  4.                 <div id="output">

  5.                 </div>
  6.                 <p>扫一扫看手机端演示</p>
  7.     </div>
  8. </div>
  9. <div id="showmobile" style="position: absolute; left: 0px; bottom: 400px; z-index: 999; width: 47px; height: 60px; cursor: pointer; display: none; background-image: url("../../images/phoneTip_right.png");">
  10. </div>
  11. <script>
  12. jQuery(function(){
  13.         jQuery('#output').qrcode("http://www.xoooi.com/");
  14. })
  15. </script>


  16. <script>
  17. window.onload=function  () {
  18.     var hidemobilebtn=document.getElementById("hidemobile");
  19.     var showmobilebtn=document.getElementById("showmobile");
  20.     var mobileframe=document.getElementById("mobileFrame");
  21.     if(!hidemobilebtn) return false;
  22.     if(!showmobilebtn) return false;
  23.     if(!mobileframe) return false;
  24.     hidemobilebtn.onclick=function(){
  25.         mobileframe.style.display="none";
  26.         showmobilebtn.style.display="block";
  27.     }
  28.     showmobilebtn.onclick=function(){
  29.         this.style.display="none";
  30.         mobileframe.style.display="";
  31.     }
  32. }
  33. document.getElementById("mobileFrame").getElementsByTagName("iframe")[0].onload=function(){this.style.width="301px";}
  34. </script>

  35. <script type="text/javascript">
  36. $(document).ready(function(){
  37.   $("#hidemobile").click(function(){
  38.     $("#mobileFrame").slideToggle();
  39.   });
  40. });
  41. </script>
复制代码
将上方 www.xoooi.com 改为你网站自己的域名
然后点击保存
OK 返回你的网站首页,刷新页面  左下角的手机出现了

作者: EFLwCYCj    时间: 2021-10-26 16:25
期待中......
作者: heal5256    时间: 2021-12-4 21:08
看帖子的要发表下看法
作者: zzz222    时间: 2021-12-5 10:53
不错!顶LZ
作者: 傲雪风    时间: 2021-12-6 00:38
必须支持。。。。。。。
作者: 快乐人    时间: 2021-12-6 11:23
期待中......
作者: ejinjing    时间: 2021-12-6 22:09
前来围观,LZ好样的!
作者: yujuan    时间: 2021-12-7 11:08
我表示压力很大
作者: snk1012    时间: 2021-12-8 00:08
抢楼了,前排第一次啊
作者: wangyan2020    时间: 2021-12-8 03:36
支持,赞
作者: torry    时间: 2021-12-8 07:04
这个不错,谢谢共享
作者: tgboler    时间: 2021-12-8 15:09
支持你们一下下哈
作者: 寶馬王子    时间: 2021-12-8 23:15
不错哦  喜欢 嘿嘿




欢迎光临 磁云互联 (https://www.xoooi.com/) Powered by Discuz! X3.4