Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weebox选项介绍 #1

Open
GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments
Open

weebox选项介绍 #1

GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

以下是默认选项:

boxid: null,    
//设定了此值只后,以后在打开同样boxid的弹窗时,前一个将�
��自
动关闭

boxclass: null, 
//给弹窗设置其它的样式,用此可以改变弹窗的样式

type: 'dialog', 
//弹窗类型,目前有dialog,error,warning,success,wee,prompt,
box六种

title: '',      //弹窗标题

width: 0,       //弹窗宽度,不设时,会自动依据内容改变大小

height: 0,      //弹窗高度(注意是内容的高度,不是弹窗的高度)

timeout: 0,     
//自动关闭的秒数,设置此值后,窗口将自动关闭

draggable: true,//是否可以拖拽

modal: true,    //是否显示遮照

overlay: 75,    //遮照透明度

focus: null,    
//弹窗打开后,焦点移到什么元素上,默认移到取消按钮到

position: 
'center',//弹窗打开后的默认为中间,设置为element时,需要设��
�
trager选项,

trigger: null, //显示位置的参照元素,为一个元素id

showTitle: true,//是否显示标题

showButton: true,//是否显示按钮,包括确定和取消

showCancel: true, //是否显示取消按钮

showOk: true, //是否显示确定按钮

okBtnName: '确定',//"确定"按钮名称

cancelBtnName: '取消',//"取消"按钮名称

contentType: 'text',//内容获取方式,目前有三种text,selector,ajax

contentChange: false,//为selector时

clickClose: false, //点击不在弹窗上时,是否关闭弹窗

zIndex: 999,//默认弹窗的层

animate: false,//效果显示

onclose: null, //弹窗关闭时触发的函数

onopen: null, //弹窗显示前触发的函数, 
此时内容已经放入弹窗中,不过还没有显
示出来

onok: null //点击确定按钮触发的函数

Original issue reported on code.google.com by [email protected] on 18 Oct 2008 at 5:10

@GoogleCodeExporter
Copy link
Author

animate
showAnimate 
hideAnimate

能不能给个例子?可以使用slideUp动画吗?

Original comment by [email protected] on 13 May 2010 at 4:02

@GoogleCodeExporter
Copy link
Author

另外,如何才能将弹出窗放在网页的右下角呢?文档没有提��
�。

Original comment by [email protected] on 13 May 2010 at 4:03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant