新增这个通知功能,不过每次打开网页都会弹出这个通知,要手动点知道了才可关闭,小高觉得有点烦人了。
- <script src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
- <style>
- .qqanimate{display:block;position:fixed;left:150px;bottom:130px;z-index:9999999;}
- </style>
- <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>
- <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>
- <a href="http://weifenshi.com/index.php?r=nine&u=399524" target="_blank" class="qqanimate">
- <img src="https://www.dhw22.com/wp-content/uploads/2021/12/ywdh-logo-1.png" width="172px" height="120px" />
- </a>
- <script>
- if(getCookie("m_qq1")!='true'){
- $(".indexpingbi").css("display","block");
- $(".indextanchu").css("display","block");
- }
- $(".indextanchu").live('click',function(e) {
- $(".indexpingbi").css("display","none");
- $(".indextanchu").css("display","none");
- setCookie1("m_qq1","true","d365");
- });
- 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)) };
- 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; } } }
- </script>