zoukankan      html  css  js  c++  java
  • 网站第一次访问通知提示js写法 Cookie判断

      之前备案时需要提示大家的一个弹窗效果,现在备案通过了,把代码小记下,有需要的朋友也可以试试,
      <script type="text/javascript">https://www.cqxftyyj.com
      $(function(){
      var tongzhi = GetCookie('tongzhitankuang');
      if (1 != tongzhi) {
      //tongzhitankuang();
      }
      });
      function tongzhitankuang()
      {
      //询问框
      var content = "温馨提示:亲爱的织梦58用户,本站拟在本月26号(周一)起闭站重新备案,期间启用临时域名<font color='red'>(<a href='http://www.dedecms58.com' target='_blank' style='color:red;'>http://www.dedecms58.com</a>)</font>供大家正常使用!";
      layer.confirm(content, {
      title: false
      ,area: ['320px','auto']
      ,btn: ['知道了'] //按钮
      ,end: function(index, layero){
      SetCookie('tongzhitankuang', 1);
      return false;
      }
      }, function(){
      layer.closeAll();
      }
      );
      }
      </script>

  • 相关阅读:
    if
    C#
    C#
    C#
    .net 5.0
    .net 5.0
    .net 5.0
    设计模式
    GAN网络中采用导向滤波的论文
    pytorch~多loss的选择
  • 原文地址:https://www.cnblogs.com/zqw111/p/12908764.html
Copyright © 2011-2022 走看看