jquery弹出层类代码分享
更新时间:2013年12月27日 15:14:57 作者:
jquery弹层类代码分享,大家参考使用吧
复制代码 代码如下:
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实现的模拟QQ邮箱里的收件人选取及其他效果(一)
今天要说的是用jquery的语法和组件dialog及Autocomplete来制作QQ邮箱的发件人操作功能,认为这个太过简单的可以离开了。2011-01-01
jquery上传插件fineuploader上传文件使用方法(jquery图片上传插件)
这篇文章主要介绍了jquery插件fineuploader上传文件很用方法2013-12-12
jquery 键盘事件 keypress() keydown() keyup()用法总结
在本篇文章里小编给各位整理的是关于jquery 键盘事件 keypress() keydown() keyup()用法总结以及相关实例,需要的朋友们学习下。2019-10-10


最新评论