jquery对联广告弹出效果代码
代码语言:html
所属分类:其他
代码描述:jquery对联广告弹出效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
body {
padding: 0;
margin: 0;
}
.coupletbox{
background: url(//repo.bfw.wiki/bfwrepo/image/610dfa579cdb3.png) no-repeat center center;
background-size: cover;
}
.closeBtn{
background: black;
color: white;
text-decoration: none;
}
</style>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.17.js"></script>
<script type="text/javascript">
jQuery.easing['jswing'] = jQuery.easing['swing'];
jQuery.extend(jQuery.easing,
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
//alert(jQuery.easing.default);
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
},
easeInQuad: function (x, t, b, c, d) {
return c*(t /= d)*t + b;
},
easeOutQuad: function (x, t, b, c, d) {
return -c *(t /= d)*(t-2) + b;
},
easeInOutQuad: function (x, t, b, c, d) {
if ((t /= d/2) < 1) return c/2*t*t + b;
return -c/2 * ((--t)*(t-2) - 1) + b;
},
easeInCubic: function (x, t, b, c, d) {
return c*(t /= d)*t*t + b;
},
easeOutCubic: function (x, t, b, c, d) {
return c*((t = t/d-1)*t*t + 1) + b;
},
easeInOutCubic: function (x, t, b, c, d) {
if ((t /= d/2) < 1) return c/2*t*t*t + b;
return.........完整代码请登录后点击上方下载按钮下载查看
网友评论0