微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Impromptu jQuery对话框插件

程序名称:Impromptu

授权协议: Apache

操作系统: 跨平台

开发语言: JavaScript

Impromptu 介绍

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)

Impromptu 官网

http://trentrichardson.com/Impromptu/index.php

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐