<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.daohangtx.com//Skins/mb/images/ui-v5-guide.png)no-repeat;"></div> <a href="http://www.djfsw.com" target="_blank" class="qqanimate"> <img src="https://pic.rmb.bdstatic.com/bjh/d63e14c9df57bf9f9e2351a98a3a9e42.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>
一款CSS3制作设计的超级可爱的仿腾讯QQ小企鹅动画特效代码,你可以学习研究出自己的效果,比如一个小孩在挥手,有兴趣的朋友下载代码看看吧
还没有评论,来说两句吧...