- 插件说明
- - jbox 是一款基于 jQuery 的多功能对话框插件,能够实现网站的整体风格效果,给用户一个新的视觉享受。
- 运行环境
- - 兼容 IE6+、Firefox、Chrome、Safari、Opera 等主流浏览器。备注:IE不支持边框的圆角样式,不推荐大家使用蛋痛的IE浏览器。
$.jbox.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 () { }
};
$.jbox.stateDefaults = {
content: '',
buttons: { '确定': 'ok' },
buttonsFocus: 0,
submit: function (v, h, f) { return true; }
};
$.jbox.tipDefaults = {
content: '',
icon: 'info',
top: '40%',
width: 'auto',
height: 'auto',
timeout: 2000,
closed: function () { }
};
$.jbox.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 () { }
};
$.jbox.languageDefaults = {
close: '关闭',
ok: '确定',
yes: '是',
no: '否',
cancel: '取消'
};