jquery弹出层类代码分享 - Web前端
作者:98wpeu发布时间:2026-06-03分类:网页前端技术浏览:7
导读:复制代码代码如下:vart9=newPopupLayer({trigger:"#ele9",popupBlk:"#blk9",closeBTn:"#close9",uSE...
复制代码 代码如下:
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)});
}
}
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)});
}
}
相关推荐
- 让table变成exls的示例代码 - Web前端
- jquery原创弹出层折叠效果点击折叠弹出一个层 - Web前端
- Jquery中的层次选择器与find()的区别示例介绍 - Web前端
- jquery的ajax简单结构示例代码 - Web前端
- jquery 鼠标滑动显示详情应用示例 - Web前端
- Jquery 过滤器(first,last,not,even,odd)的使用 - Web前端
- jQuery自定义事件的简单实现代码 - Web前端
- jQuery-ui引入后Vs2008的无智能提示问题解决方法 - Web前端
- jquery实现页面图片等比例放大缩小功能 - Web前端
- jQuery选择器全面总结 - Web前端
- 网页前端技术排行
- 最近发表
-
- WordPress随机显示特色图片插件:Random Post Thumbnails
- KeePass实现Chrome浏览器自动填充密码方法一
- LNMP一键包nginx 301强制跳转到https教程
- KeePass实现Chrome浏览器自动填充密码方法二
- #建站# 免费的VPS管理软件Xshell8/Xftp8中文版下载
- 使用Xshell 8连接VPS教程_电脑登录vps的方法
- WordPress评论界面添加烟花????效果
- 不同浏览器书签同步方案:坚果云+Floccus_详细使用教程
- iOS端KeePassXC客户端APP:Strongbox Password Safe
- 给WordPress评论中的Gravatar头像图片添加ALT属性


