artDialog 弹窗提示

artDialog 弹窗提示,方便调用,不用去查文档了。

 1 /// <reference path="../../Scripts/artDialog5.0/artDialog.min.js" />
 2 
 3 ;(function (win) {
 4     var artIco = { success: "succeed", sad: "face-sad", error: "error", warning: "warning" };
 5     var artDiv = {
 6         loading:LodingDiv,
 7         ico: artIco,
 8         alertConfirm:function (msg,okFun,cancelFun){
 9             AlertConfirm(msg,okFun,cancelFun);
10         },
11         alterMessage: function (vImg, vMes, time) {
12             if (arguments.length == 2) {
13                 AlertMessage(vImg, vMes);
14             }else if(arguments.length == 3){
15                AlertMessage(vImg, vMes,time);
16             }
17         }
18     };
19     
20     function LodingDiv(){
21             var d = art.dialog({
22                 title: '提示',
23                 content: "<img src=\"/Scripts/artDialog5.0/skins/loading.gif\" />",
24                 lock: true,
25                 opacity: 0.7,
26                 esc: false,
27                 cancel: false
28             });
29             return d;
30     }
31 
32     function AlertConfirm(msg,okFun,cancelFun){
33            art.dialog({
34                 title: '提示',
35                 content: msg,
36                 lock: true,
37                 opacity: 0.7,
38                 esc: false,
39                 cancel: false,
40                 ok:okFun,
41                 cancel:cancelFun,
42                 okValue: '确定',
43                 cancelValue: '取消'
44             });
45     }
46 
47     function AlertMessage(vImg, vMes) {
48         art.dialog({
49             title: '信息提示',
50             content: '<table width=\'100%\'><tr><td><img src="/../../Scripts/artDialog5.0/skins/icons/' + vImg + '.png"/> </td><td>' + vMes + '</td></tr></table>',
51             width: '350px',
52             height: '120px',
53             opacity: 0.7,
54             okValue: '关 闭',
55             lock: true,
56             ok: function () {
57 
58             }
59         });
60     }
61 
62     function AlertMessage(vImg, vMes, time) {
63         art.dialog({
64             title: '信息提示',
65             content: '<table width=\'100%\'><tr><td><img src="/../../Scripts/artDialog5.0/skins/icons/' + vImg + '.png"/> </td><td>' + vMes + '</td></tr></table>',
66             width: '350px',
67             height: '120px',
68             opacity: 0.7,
69             okValue: '关 闭',
70             lock: true,
71             time: time,
72             ok: function () {
73 
74             }
75         });
76     }
77 
78     win.$artDiv = artDiv;
79 })(window);
View Code

 

转载于:https://www.cnblogs.com/tongyi/p/6702542.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值