您的位置:首页 > Web前端 > JQuery

jQuery插件--仿facebook样式的模态框.

2009-06-03 19:51 363 查看
演示:
http://www.ajaxplaza.net/jmodal/jmodal.htm

下载:
http://code.google.com/p/jmodal/

API

data(Object): the data u'll post to modaldialog.
buttonText(String): button text.
okEvent(Function): button event.
initWidth(Interger): the init width of modaldialog.
title(String): title of modaldialog.
content(String): content of the modaldialog(u can use html tags).
overlayCss(Object): the css of overlay.
jmodalbgCss(Object): the css of modaldialog background(used to generate shadow).
jmodalCss(Object): the css of modaldialog.
closeCss(Object): the css of close anchor.
titleCss(Object): the css of title.
contentCss(Object):the css of content.
bottomCss(Object): the css of modaldialog bottom.
buttonCss(Object): the css of ok button.

$.fn.jmodal({ title: 'Information',
content: 'Hi,you displayed me?',
buttonText: 'Yes,It\'s me',
okEvent: function(e) {
alert('jmodal\'ll be closed after u click me:-)' );
}
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: