ImpromptujQuery对话框插件

联合创作 · 2023-10-02 07:27

jQuery Impromptu 是一个用来显示漂亮的错误提示、警告、信息提示的jQuery对话框插件。可以通过css对对话框的样式进行定制,包括定制对话框的按钮等。

$.prompt("Procede?",{buttons:{'Please Do':'yes','Not Now':'no','Never':'never'}});

参数说明:

  • 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)
浏览 9
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报