jQuery 弹窗插件:Avgrund
jopen
12年前
Avgrund 是一个 jQuery 用来创建模式对话框的插件,支持包括 IE6 在内的流行浏览器,要求 jQuery 1.4+ ,文件很小,只有 2kb。用法:
$('element').avgrund({ width: 380, // max is 640px height: 280, // max is 350px showClose: false, // switch to 'true' for enabling close button showCloseText: '', // type your text for close button closeByEscape: true, // enables closing popup by 'Esc'.. closeByDocument: true, // ..and by clicking document itself holderClass: '', // lets you name custom class for popin holder.. overlayClass: '', // ..and overlay block enableStackAnimation: false, // another animation type onBlurContainer: '', // enables blur filter for specified block template: 'Your content goes here..' });