所属分类:弹出层,工具提示

jQuery扁平对话框插件gDialog

35612 浏览 340 收藏 13 留言
ie兼容9

插件描述

jQuery扁平对话框插件gDialog,适用于移动端,并平滑兼容IE浏览器。

更新时间
2016-08-30 15:08
下载量
1554
所需 JQ 币
0
分类
UI / 弹出层,工具提示

详细内容

不支持IE8及以下浏览器。

//alert提示框  
$.gDialog.alert("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse libero erat, scelerisque sit amet dolor nec, euismod feugiat massa.", {
    title: "Alert Dialog Box",
    animateIn: "bounceIn",
    animateOut: "bounceOut"
  });
});  
//带表单 confirm
$('.demo-2').click(function(){
  $.gDialog.prompt("jQuery", "www.jq22.com", {
    title: "Prompt Dialog Box",
    required: true,
    animateIn : "rollIn",
    animateOut: "rollOut"
  });
}); 
//confirm 操作提示
$('.demo-3').click(function(){
  $.gDialog.confirm("Are You Sure?", {
    title: "Confirm Dialog Box",
    animateIn : "bounceInDown",
    animateOut: "bounceOutUp"
  });

关键词:jQuery扁平对话框插件gDialog, 提示框,弹出层,gDialog,jquery,jquery插件

讨论这个项目 (13)

静沐暖阳?

$.gDialog.prompt要提交数据,有方法可以跳转URL吗

静沐暖阳?

sorry,脑残了,居然问了这个问题,明白了,谢谢

静沐暖阳?

如何获取prompt的input中的内容呢

BlessNeo
function showOrderPayAlert() {
  $.gDialog.confirm("xxxxx", {
    title: "支付确认",
    cancel: "取消",
    confirm: "已完成支付",
    onSubmit: function payAlertConfirm() {
      var t = setTimeout("turnToPayResult()", 1000);
    },
    animateIn: "bounceIn",
    animateOut: "bounceOut"
  });
}
m._OPTIONS = {
        title: false,
        cancel:false,
        confirm:false,
        animateIn : false,
        animateOut : false,
        onSubmit : false,
        onCancel : false,
        required: false,
    };
m.tplBase += "<div class=\"gdialog-button-group\">{{BUTTON_CANCEL}} <button class=\"button button-ok\">{{ok}}</button></div>";
if (options.cancel) {
          t = t.replace("{{cancel}}",options.cancel);
        }else {
          t = t.replace("{{cancel}}","取消");
        }
        if (options.confirm) {
          t = t.replace("{{ok}}",options.confirm);
        }else {
          t = t.replace("{{ok}}","好的");
        }
居然今天难离去

onSubmit onCancel 这里杂用啊

肥肥猫.

作者您好,我是新手小白,请问您的这款插件怎么才能够动态改变值呢?

我养的小猫

confirm 如何返回boolean值,貌似点取消和确认没返回值怎么判断。。。。。

小学生

{ 提供了onSubmit onCancel供你使用 }

于跃
我没有办法修改弹出的内容,比方我想在第三个中添加文本框,我就没办法弄
Monica-J
您好,第二个带有表单提交的弹出框,我想要将输入的值提交到后台怎么弄呢? cancel 和 ok  我想换成中文的,但是并没有找到在哪里更改它们,麻烦您了。
肥肥猫.

你比我还白呢。。。在一个js文件里面修改

粗人
confirm返回值在哪里。怎么使用回调函数
尘封的记忆
onSubmit onCancel

当前页面为只读展示,仅显示已审核留言;提交留言功能暂未开放。