加强的alert confirm js自定义对话框 多个按钮 ICO自定义
2007-01-18 13:08
507 查看
效果图:
<html>
<head>
<title>对话框</title>
<link rel="stylesheet" type="text/css" href="/modules/commons/css/dialog.css">
<script src="/modules/commons/js/prototype.js"></script>
<script src="/modules/commons/js/dialog.js"></script>
</head>
<body>
<div id="Contain">
<div id="ICO" style="position:absolute; left:0px; top:5px;"></div>
<div id="Message"></div>
<div id="Buttons"></div>
</div>
</body>
</script>
</html>
调用方法的封装
/**//*
var Dialog = {
Show : function(objIn){
var url = '/Commons/Dialog.do'
var style = 'dialogHeight:110px; dialogWidth:250px; edge:Raised; scroll:no; center:Yes; help:No; resizable:no; status:no;'
return window.showModalDialog(url, objIn, style)
},
Alert : '/modules/commons/images/alert.png',
Confirm : '/modules/commons/images/confirm.png',
Error : '/modules/commons/images/error.gif.png'
}
<html>
<head>
<title>对话框</title>
<link rel="stylesheet" type="text/css" href="/modules/commons/css/dialog.css">
<script src="/modules/commons/js/prototype.js"></script>
<script src="/modules/commons/js/dialog.js"></script>
</head>
<body>
<div id="Contain">
<div id="ICO" style="position:absolute; left:0px; top:5px;"></div>
<div id="Message"></div>
<div id="Buttons"></div>
</div>
</body>
</script>
</html>
调用方法的封装
/**//*
var Dialog = {
Show : function(objIn){
var url = '/Commons/Dialog.do'
var style = 'dialogHeight:110px; dialogWidth:250px; edge:Raised; scroll:no; center:Yes; help:No; resizable:no; status:no;'
return window.showModalDialog(url, objIn, style)
},
Alert : '/modules/commons/images/alert.png',
Confirm : '/modules/commons/images/confirm.png',
Error : '/modules/commons/images/error.gif.png'
}
相关文章推荐
- 加强的alert confirm js自定义对话框 多个按钮 ICO自定义
- Android webview中定制js的alert,confirm和prompt对话框的方法 (处理webview 带网站地址的弹出框)
- JS模拟Alert与Confirm对话框
- 自定义提示框(alert、confirm 可自定义标题 内容 图标 取消按钮)
- 如何使用Bootstrap的modal组件自定义alert,confirm和modal对话框
- C#:在WebBrowser控件中阻止alert[警告框],confirm[确认对话框]对话框」及解析网页框架集\触发按钮事件
- 利用bootstrap的modal组件自定义alert,confirm和modal对话框
- Android WebView封装及定制js的alert,confirm和prompt对话框的方法
- JS对话框函数alert(),confirm(),prompt()
- jquery自定义对话框alert、confirm和prompt
- 在Android的webview中定制js的alert,confirm和prompt对话框的方法
- 自定义提示框(alert、confirm 可自定义标题 内容 图标 取消按钮)
- 在Android的webview中定制js的alert,confirm和prompt对话框的方法
- ALertDialog自定义View对话框 获得View上的输入信息 + 点击按钮满足条件后消失
- jquery自定义对话框alert、confirm和prompt
- (转)在Android的webview中定制js的alert,confirm和prompt对话框的方法
- 在Android的webview中定制js的alert,confirm和prompt对话框的方法
- 在Android的webview中定制js的alert,confirm和prompt对话框的方法
- jquery自定义对话框alert、confirm和prompt
- 在Android的webview中定做js的alert,confirm和prompt对话框的方法