源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

jquery弹出层类代码分享

  • 时间:2020-06-20 21:49 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:jquery弹出层类代码分享
[u]复制代码[/u] 代码如下:
var t9 = new PopupLayer({trigger:"#ele9",popupBlk:"#blk9",closeBtn:"#close9", useOverlay:true,useFx:true,offsets:{x:0,y:-41}}); t9.doEffects = function(way){     if(way == "open"){         this.popupLayer.css({opacity:0.3}).show(400,function(){             this.popupLayer.animate({                 left:($(document).width() - this.popupLayer.width())/2,                 top:(document.documentElement.clientHeight -                     this.popupLayer.height())/2 + $(document).scrollTop(),                 opacity:0.8             },1000,function(){this.popupLayer.css("opacity",1)}.binding(this));         }.binding(this));     }     else{         this.popupLayer.animate({             left:this.trigger.offset().left,             top:this.trigger.offset().top,             opacity:0.1         },{duration:500,complete:function(){             this.popupLayer.css("opacity",1);this.popupLayer.hide()}.binding(this)});     } }
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部