欢迎来到豆沙资源网,请记住本站地址:www.xsdy168.com 以备不时之需

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

搜点资源网 2020-3-26 综合资源 1

20171012162551395139.png

<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(http://0d077ef9e74d8.cdn.sohucs.com/qj05DuX_png)no-repeat;"></div>
    <a href="http://www.cmylw.cn/" target="_blank" class="qqanimate">
        <img src="http://0d077ef9e74d8.cdn.sohucs.com/qin7buw_gif" 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>


本文标签: 网页代码
  特别声明:文章多为网络转载,资源使用一般不提供帮助,特殊原创资源除外,如有侵权,不实,不妥请联系删除!

上一篇:jquery.hiSlider.js支持手机端的响应式焦点图插件
下一篇:鼠标经过卡片式突出显示图文详情js特效代码

发表留言:

同类推荐