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);

最新文章

  1. 敏捷转型历程 - Sprint3 回顾会
  2. ELF Format 笔记(十一)—— 程序头结构
  3. 基于Bootstrap、Jquery的自适应导航栏
  4. php + ajax + html 简单跨域问题
  5. FM000
  6. 自由软件VS开源软件
  7. 程序员带你十天快速入门Python,玩转电脑软件开发(三)
  8. 【转】图说Android的8年演变史
  9. ActiveMQ的配置与使用
  10. 生成订单:三个表(Products,Orders,OrderItem)
  11. 【CentOS】阿里云ECS申请CA证书配置SSL
  12. Android动态加载技术(插件化技术)
  13. springboot中配置文件application.properties的理解
  14. 关于加载font-awesome文字显示不出来
  15. maven install 报错 No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
  16. 【微服务】.netCore eShopOnContainers 部署实践《一》
  17. kvm虚拟化关闭虚拟网卡virbr0的方法
  18. php+js实现重定向跳转并post传参
  19. C#复数类的总结
  20. PAT Radix[二分][进制转换][难]

热门文章

  1. 设置控件如ImageButton可见与否
  2. PHP Extension
  3. 2016年蓝桥杯B组C/C++省赛(预选赛)题目解析
  4. C#中配置文件保存的路径
  5. 【第十四章】 springboot + profile(不同环境读取不同配置)
  6. NetMagic Simple Overview
  7. 02_Kafka单节点实践
  8. Testing Round #12 A,B,C 讨论,贪心,树状数组优化dp
  9. Mac OS下安装mvn
  10. URAL 1303 Minimal Coverage