function openModalDialog(url, height, width) {
var t_height = 400;
var t_width = 600;
if (!isNaN(height)) {
t_height = height;
}
if (!isNaN(width)) {
t_width = width;
}
showModalDialog(url, 'newwindow',
'dialogWidth:' + t_width + 'px;dialogHeight:' + t_height + 'px;center:yes;help:yes;resizable:no;status:no')
} function openModelessDialog(url, height, width) {
var t_height = 400;
var t_width = 600;
if (!isNaN(height)) {
t_height = height;
}
if (!isNaN(width)) {
t_width = width;
}
showModelessDialog(url, 'newwindow',
'dialogWidth:' + t_width + 'px;dialogHeight:' + t_height + 'px;center:yes;help:yes;resizable:no;status:no')
} function openWindow(url, height, width) {
var t_height = 400;
var t_width = 600;
if (!isNaN(height)) {
t_height = height;
}
if (!isNaN(width)) {
t_width = width;
}
var left = (window.screen.width - t_width) / 2;
var top = (window.screen.height - t_height) / 2;
window.open(url, 'newwindow',
'resizable=no,height=' + t_height + ',width=' + t_width + ',top=' + top + ',left=' + left + ',titlebar=no ,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
}

程序员的基础教程:菜鸟程序员

最新文章

  1. Python 中xrange和range区别
  2. 解决gradle /Users/xxxx/Documents/workspace/fontmanager/.gradle/2.2.1/taskArtifacts/cache.properties (No such file or directory)报错办法
  3. Linux redirect the stdout to a file
  4. HDU5777 domino (BestCoder Round #85 B) 思路题+排序
  5. msp时钟设置程序
  6. 样式优先级、margin
  7. Mysql分页查询
  8. 编写SQL
  9. 小米1S iptables禁止443端口
  10. assert 实现分析
  11. OBJECT和EMBED标签
  12. Aseprite入门:第一个gif动图
  13. 如何让windows更高效?
  14. js处理想要得到数据结构
  15. 20155323 第四次实验 Android程序设计实验报告
  16. TypeScript学习笔记—函数
  17. Java学习之Dubbo+ZooKeeper分布式服务Demo
  18. 《C#多线程编程实现方式》
  19. client , offset , scroll 系列 及百度导航栏案例
  20. codeforce Gym 100342H Hard Test (思考题)

热门文章

  1. vi下的查找替换命令
  2. 【BZOJ2850】巧克力王国 KDtree
  3. 探秘VB.net中的shared与static
  4. CLR 对比 JVM
  5. new Date(2016,3,29,10) 时区的问题
  6. 【转】Jmeter常见问题
  7. django-settings.py配置
  8. 利用 Flask+Redis 维护 IP 代理池
  9. JAVA的对称加密算法AES——加密和解密
  10. Oracle11gr2_ADG管理之跳归档恢复dg实战