手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >jquery弹出层类代码分享
jquery弹出层类代码分享
摘要:复制代码代码如下:vart9=newPopupLayer({trigger:"#ele9",popupBlk:"#blk9",closeBt...

复制代码 代码如下:

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)});

}

}

【jquery弹出层类代码分享】相关文章:

网页里控制图片大小的相关代码

js控制div弹出层实现方法

必须点击广告才能进入的代码

jQuery获得字体颜色16位码的方法

js实现异步循环实现代码

jquery右下角自动弹出可关闭的广告层

jQuery聚合函数实例

JQUERY表单暂存功能插件分享

Js和JQuery获取鼠标指针坐标的实现代码分享

javascript基础知识分享之类与函数化

精品推荐
分类导航