artDialog 弹窗提示
2024-10-18 21:26:27
artDialog 弹窗提示,方便调用,不用去查文档了。
/// <reference path="../../Scripts/artDialog5.0/artDialog.min.js" /> ;(function (win) {
var artIco = { success: "succeed", sad: "face-sad", error: "error", warning: "warning" };
var artDiv = {
loading:LodingDiv,
ico: artIco,
alertConfirm:function (msg,okFun,cancelFun){
AlertConfirm(msg,okFun,cancelFun);
},
alterMessage: function (vImg, vMes, time) {
if (arguments.length == ) {
AlertMessage(vImg, vMes);
}else if(arguments.length == ){
AlertMessage(vImg, vMes,time);
}
}
}; function LodingDiv(){
var d = art.dialog({
title: '提示',
content: "<img src=\"/Scripts/artDialog5.0/skins/loading.gif\" />",
lock: true,
opacity: 0.7,
esc: false,
cancel: false
});
return d;
} function AlertConfirm(msg,okFun,cancelFun){
art.dialog({
title: '提示',
content: msg,
lock: true,
opacity: 0.7,
esc: false,
cancel: false,
ok:okFun,
cancel:cancelFun,
okValue: '确定',
cancelValue: '取消'
});
} function AlertMessage(vImg, vMes) {
art.dialog({
title: '信息提示',
content: '<table width=\'100%\'><tr><td><img src="/../../Scripts/artDialog5.0/skins/icons/' + vImg + '.png"/> </td><td>' + vMes + '</td></tr></table>',
width: '350px',
height: '120px',
opacity: 0.7,
okValue: '关 闭',
lock: true,
ok: function () { }
});
} function AlertMessage(vImg, vMes, time) {
art.dialog({
title: '信息提示',
content: '<table width=\'100%\'><tr><td><img src="/../../Scripts/artDialog5.0/skins/icons/' + vImg + '.png"/> </td><td>' + vMes + '</td></tr></table>',
width: '350px',
height: '120px',
opacity: 0.7,
okValue: '关 闭',
lock: true,
time: time,
ok: function () { }
});
} win.$artDiv = artDiv;
})(window);
最新文章
- 敏捷转型历程 - Sprint3 回顾会
- ELF Format 笔记(十一)—— 程序头结构
- 基于Bootstrap、Jquery的自适应导航栏
- php + ajax + html 简单跨域问题
- FM000
- 自由软件VS开源软件
- 程序员带你十天快速入门Python,玩转电脑软件开发(三)
- 【转】图说Android的8年演变史
- ActiveMQ的配置与使用
- 生成订单:三个表(Products,Orders,OrderItem)
- 【CentOS】阿里云ECS申请CA证书配置SSL
- Android动态加载技术(插件化技术)
- springboot中配置文件application.properties的理解
- 关于加载font-awesome文字显示不出来
- maven install 报错 No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- 【微服务】.netCore eShopOnContainers 部署实践《一》
- kvm虚拟化关闭虚拟网卡virbr0的方法
- php+js实现重定向跳转并post传参
- C#复数类的总结
- PAT Radix[二分][进制转换][难]