技术导航网挺火的网站左下角QQ企鹅弹出代码分享

0.0/0人
免费

更新时间:2022-11-26 01:24:39

所属分类:其他资源

评论回复:0

 

暂无演示 下载权限

新增这个通知功能,不过每次打开网页都会弹出这个通知,要手动点知道了才可关闭,小高觉得有点烦人了。

  1. <script src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
  2. <style>
  3. .qqanimate{display:block;position:fixed;left:150px;bottom:130px;z-index:9999999;}
  4. </style>
  5. <div class="indexpingbi" style="display:none;z-index:999999;width:100%;height:100%;position:fixed;top:0px;left:0px;background:#000;filter: alpha(opacity=70);-moz-opacity: 0.7;-khtml-opacity: 0.7;opacity: 0.7;"></div>
  6. <div class="indextanchu" style="cursor:pointer;display:none;position: fixed;left:80px;bottom: 20px;width:560px;height:250px;z-index:9999999;background:url(https://www.dhw22.com/wp-content/uploads/2021/12/ywdh-logo-1.png)no-repeat;"></div>
  7. <a href="http://weifenshi.com/index.php?r=nine&u=399524" target="_blank" class="qqanimate">
  8. <img src="https://www.dhw22.com/wp-content/uploads/2021/12/ywdh-logo-1.png" width="172px" height="120px" />
  9. </a>
  10. <script>
  11. if(getCookie("m_qq1")!='true'){
  12. $(".indexpingbi").css("display","block");
  13. $(".indextanchu").css("display","block");
  14. }
  15. $(".indextanchu").live('click',function(e) {
  16. $(".indexpingbi").css("display","none");
  17. $(".indextanchu").css("display","none");
  18. setCookie1("m_qq1","true","d365");
  19.  
  20. });
  21. function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if(begin == -1) { begin = dc.indexOf(prefix); if(begin != 0) return null } else { begin += 2 } var end = document.cookie.indexOf(";", begin); if(end == -1) { end = dc.length } return unescape(dc.substring(begin + prefix.length, end)) };
  22. function setCookie1(name, value, time) { var strsec = getsec(time); var exp = new Date(); exp.setTime(exp.getTime() + strsec * 1); document.cookie = name + "=" + escape(value) + "; path=/;expires=" + exp.toGMTString(); } function getsec(str) { var str1 = str.substring(1, str.length) * 1; var str2 = str.substring(0, 1); if(str2 == "s") { return str1 * 1000; } else if(str2 == "h") { return str1 * 60 * 60 * 1000; } else if(str2 == "d") { return str1 * 24 * 60 * 60 * 1000; } } Array.prototype.ArrDelVal = function(val) { for(var i = 0; i < this.length; i++) { if(this[i] == val) { this.splice(i, 1); break; } } }
  23. </script>

百度
- MB

相关推荐

首页 导航 会员 客服