jQuery Impromptu 是一个用来显示漂亮的错误提示、警告、信息提示的jQuery对话框插件。可以通过css对对话框的样式进行定制,包括定制对话框的按钮等。
参数说明:
•prefix: a class prefix to associate each prompt with a css class
•submit: a function to call when prompt has been submitted
•callback: a function to call when prompt is complete
•opacity: prefered opacity of the overlay
•container: jquery selector for the overlay to cover ("div.mydiv")
•buttons: buttons you would like to display(as many as you like)
•overlayspeed: speed which the overlay fades in/out
•promptspeed: speed which the prompt displays
•show: how to show the prompt(show, fadeIn, slideDown, or your own)
来自:开源中国社区

