1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- var jBoxConfig = {};
- jBoxConfig.defaults = {
- id: null,
- top: '15%',
- border: 5,
- opacity: 0.1,
- timeout: 0,
- showType: 'fade',
- showSpeed: 'fast',
- showIcon: true,
- showClose: true,
- draggable: true,
- dragLimit: true,
- dragClone: false,
- persistent: true,
- showScrolling: true,
- ajaxData: {},
- iframeScrolling: 'auto',
- title: 'jBox',
- width: 350,
- height: 'auto',
- bottomText: '',
- buttons: { '确定': 'ok' },
- buttonsFocus: 0,
- loaded: function (h) { },
- submit: function (v, h, f) { return true; },
- closed: function () { }
- };
- jBoxConfig.stateDefaults = {
- content: '',
- buttons: { '确定': 'ok' },
- buttonsFocus: 0,
- submit: function (v, h, f) { return true; }
- };
- jBoxConfig.tipDefaults = {
- content: '',
- icon: 'info',
- top: '40%',
- width: 'auto',
- height: 'auto',
- opacity: 0,
- timeout: 3000,
- closed: function () { }
- };
- jBoxConfig.messagerDefaults = {
- content: '',
- title: 'jBox',
- icon: 'none',
- width: 350,
- height: 'auto',
- timeout: 3000,
- showType: 'slide',
- showSpeed: 600,
- border: 0,
- buttons: {},
- buttonsFocus: 0,
- loaded: function (h) { },
- submit: function (v, h, f) { return true; },
- closed: function () { }
- };
- jBoxConfig.languageDefaults = {
- close: '关闭',
- ok: '确定',
- yes: '是',
- no: '否',
- cancel: '取消'
- };
- $.jBox.setDefaults(jBoxConfig);
|