微信客服微信客服
山高路远
2025-6-4 17:41:25

弹窗代码修改

我来回答
<style type="text/css"> .kffixedgzhbg{width:100%;height:100%;background:#000; position:fixed;top:0;left:0;z-index:1000; opacity:0.7;filter:alpha(opacity =70); display: none;} .kffixedgzhbox{height:auto; width:80%; min-height:300px; color:#FFFFFF; z-index:2000; margin:auto; position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); border-radius:5px; text-align: center; overflow: hidden; display: none;} .kffixedgzhbox .title{ font-size: 20px; line-height: 35px; color: #000000; margin-top: 15px;} .kffixedgzhbox .title em{ background: url("/images/ico_title1.png") no-repeat 0px 10px; margin: 0px 5px; background-size: 20px; display: inline-block; width: 25px; height: 24px;} .kffixedgzhbox .title em:last-of-type{background-image: url("/images/ico_title2.png");} .kffixedgzhbox .title1{ font-size: 14px; line-height: 20px; color: #1fbf8c; margin-bottom: 10px;} .kffixedgzhbox .qrcode{ max-width: 800px; margin: auto;} .kffixedgzhbox .qrcode img{ width: 100%;} .kffixedgzhbox .close{ line-height: 55px; font-size: 18px; letter-spacing: 2px; } </style> <div class="kffixedgzhbg"></div> <div class="kffixedgzhbox"> <div class="qrcode"><img src="/images/618.jpg" /></div> <div class="close">关闭</div> </div> <script type="text/javascript" src="/js/m.js"></script> <script type="text/javascript"> function getCookie(name) { var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); if(arr != null) return unescape(arr[2]); return ""; } function setCookie(name,value,Days) { var exp = new Date(); exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = name + "="+ escape (value) + ";path=/;expires=" + exp.toGMTString(); } $(function(){ var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") { if(getCookie("fixedgzh")=="") { setCookie("fixedgzh","1",2); $(".kffixedgzhbg").show(); $(".kffixedgzhbox").show(); } } $(".kffixedgzhbox .close").on("click",function(e){ $(".kffixedgzhbg").hide(); $(".kffixedgzhbox").hide(); }); }); </script> 这个弹窗代码目前仅在微信端展示,想改成所有访问都展示,请问如何修改?谢谢。
共2个回答
框分类信息系统
2025-6-4 19:53:29
if (ua.match(/MicroMessenger/i) == "micromessenger") 改成if(true)
2
回复
山高路远回复框分类信息系统
2025-6-4 20:12:53
感谢
1
回复
发布回答
取消回复
  • 上传图片
相关问题
  • 暂时无信息

电话:15561532279 Q Q :251443403
周一至周五(早8:00 - 晚6:00)
2000人站长群:176381403
VIP QQ群:196313294
Copyright © 2008-2026 框分类信息系统  版权所有    ICP证:黑ICP备19004589号     黑公网安备 23090402000014号
本系统由七台河市广盛网络科技有限公司开发 专业地方同城分类信息源码