惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
www.infosecurity-magazine.com
www.infosecurity-magazine.com
SecWiki News
SecWiki News
Webroot Blog
Webroot Blog
AI
AI
S
Secure Thoughts
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Cloudbric
Cloudbric
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
The Exploit Database - CXSecurity.com
Latest news
Latest news
N
News and Events Feed by Topic
Simon Willison's Weblog
Simon Willison's Weblog
Scott Helme
Scott Helme
S
Schneier on Security
H
Hacker News: Front Page
Forbes - Security
Forbes - Security
T
Troy Hunt's Blog
Know Your Adversary
Know Your Adversary
S
Security Affairs
V
Visual Studio Blog
Stack Overflow Blog
Stack Overflow Blog
博客园_首页
腾讯CDC
GbyAI
GbyAI
有赞技术团队
有赞技术团队
Last Week in AI
Last Week in AI
N
News and Events Feed by Topic
WordPress大学
WordPress大学
The Register - Security
The Register - Security
Engineering at Meta
Engineering at Meta
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cisco Talos Blog
Cisco Talos Blog
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements
V
V2EX
S
Securelist
Security Archives - TechRepublic
Security Archives - TechRepublic
B
Blog RSS Feed
PCI Perspectives
PCI Perspectives
Security Latest
Security Latest
I
InfoQ
I
Intezer
L
LangChain Blog
雷峰网
雷峰网
NISL@THU
NISL@THU
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志

博客园 - 站得更高,看得更远

使用ServletContextListener在服务器启动和关闭时创建和关闭缓存 Tomcat的class加载的优先顺序一览 汉字转拼音缩写 - 站得更高,看得更远 - 博客园 tomcat 中解决打开xls文件的乱码问题 鼠标在图片上滚动放大或者缩小图片的代码 - 站得更高,看得更远 - 博客园 弹出窗口居中 网页常用小技巧(JavaScript) - 站得更高,看得更远 - 博客园 Javascript 小技巧集 LookupDispatchAction, MappingDispatchAction深入分析 Strus 2的新表单标志的使用 Struts 2与AJAX(第二部分) Struts 2与AJAX(第一部分) Struts 2中的OGNL 常用的Struts 2.0的标志(Tag)介绍 在Struts 2.0中国际化(i18n)您的应用程序 在Struts 2.0中实现表单数据校验(Validation) 在Struts 2中实现IoC 在Struts 2中实现文件上传 转换器(Converter)——Struts 2.0中的魔术师
弹出窗口大全(js)
站得更高,看得更远 · 2008-11-03 · via 博客园 - 站得更高,看得更远

弹出窗口大全(js) //========================================================================== // // 代码描述:打开一个新的有状态栏、工具栏、菜单栏、定位栏, // 可以改变大小,且位置居中的新窗口 // // 传入参数:pageURL - 传递链接 // innerWidth - 传递需要打开新窗口的宽度 // innerHeight - 传递需要打开新窗口的高度 // // 返回参数:无 // // //========================================================================== function g_OpenSizeWindow(pageURL, innerWidth, innerHeight) { var ScreenWidth = screen.availWidth var ScreenHeight = screen.availHeight var StartX = (ScreenWidth - innerWidth) / 2 var StartY = (ScreenHeight - innerHeight) / 2 window.open(pageURL, '', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=yes, scrollbars=yes, status=yes, toolbar=yes, menubar=yes, location=no') } //========================================================================== // // 代码描述:打开一个新的没有状态栏、工具栏、菜单栏、定位栏, // 不能改变大小,且位置居中的新窗口 // // 传入参数:pageURL - 传递链接 // innerWidth - 传递需要打开新窗口的宽度 // innerHeight - 传递需要打开新窗口的高度 // // 返回参数:无 // // //========================================================================== function g_OpenWindow(pageURL, innerWidth, innerHeight) { var ScreenWidth = screen.availWidth var ScreenHeight = screen.availHeight var StartX = (ScreenWidth - innerWidth) / 2 var StartY = (ScreenHeight - innerHeight) / 2 window.open(pageURL, '', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no') } //========================================================================== // // 代码描述:打开一个新的没有状态栏、工具栏、菜单栏、定位栏, // 不能改变大小,且位置居中的新窗口 // // // 传入参数:pageURL - 传递链接 // innerWidth - 传递需要打开新窗口的宽度 // innerHeight - 传递需要打开新窗口的高度 // // 返回参数:返回的数值 // // //========================================================================== function g_OpenReturnWindow(pageURL, innerWidth, innerHeight) { var ScreenWidth = screen.availWidth var ScreenHeight = screen.availHeight var StartX = (ScreenWidth - innerWidth) / 2 var StartY = (ScreenHeight - innerHeight) / 2 window.open(pageURL, '', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no') return false } function g_OpenReturnWindowNoScrollbars(pageURL, innerWidth, innerHeight) { var ScreenWidth = screen.availWidth var ScreenHeight = screen.availHeight var StartX = (ScreenWidth - innerWidth) / 2 var StartY = (ScreenHeight - innerHeight) / 2 window.open(pageURL, '', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=no, status=no, toolbar=no, menubar=no, location=no') //return false } //========================================================================== // // 代码描述:打开一个新的没有状态栏、工具栏、菜单栏、定位栏, // 不能改变大小,且位置居中的新窗口 // // 传入参数:pageURL - 传递链接 // // 返回参数:无 // // //========================================================================== function g_OpenReturnWindowPrint(pageURL) { var ScreenWidth = screen.availWidth var ScreenHeight = screen.availHeight //var StartX = (ScreenWidth - innerWidth) / 2 //var StartY = (ScreenHeight - innerHeight) / 2 var Win = window.open(pageURL, '','Width=' + ScreenWidth +', height=' + ScreenHeight + ', resizable=no, scrollbars=no, status=no, toolbar=no, menubar=no, location=no, left=0, top=0') Win.moveTo(99999,99999) return false } //========================================================================================== // // 代码描述:打开模式窗口函数,打开一个模式窗口不包含菜单、状态条、工具条、定位栏 // // 传入参数:pageURL - 传递链接 // innerWidth - 传递需要打开新窗口的宽度 // innerHeight - 传递需要打开新窗口的高度 // 返回参数:无 // // //========================================================================================== function g_OpenModalWindow(pageURL, innerWidth, innerHeight) { window.showModalDialog(pageURL, null, 'dialogWidth:' + innerWidth + 'px;dialogHeight:' + innerHeight + 'px;help:no;unadorned:no;resizable:no;status:no') } //========================================================================================== // // 代码描述:打开模式窗口函数,打开一个模式窗口不包含菜单、状态条、工具条、定位栏 ,并且返回值 // // 传入参数:pageURL - 传递链接 // innerWidth - 传递需要打开新窗口的宽度 // innerHeight - 传递需要打开新窗口的高度 // 返回参数:模式窗体返回的returnValue // // //========================================================================================== function g_OpenreturnWindow(pageURL, innerWidth, innerHeight) { var returnv; returnv=window.showModalDialog(pageURL, null, 'dialogWidth:' + innerWidth + 'px;dialogHeight:' + innerHeight + 'px;help:no;unadorned:no;resizable:no;status:no') return returnv; } //========================================================================================== // // 代码描述:打开模式窗口函数,打开一个模式窗口不包含菜单、状态条、工具条、定位栏 // // 传入参数:pageURL - 传递链接 // innerWidth - 传递需要打开新窗口的宽度 // innerHeight - 传递需要打开新窗口的高度 // 返回参数:无 // // //========================================================================================== function g_OpenReturnModalWindow(pageURL, innerWidth, innerHeight) { window.showModalDialog(pageURL, null, 'dialogWidth:' + innerWidth + 'px;dialogHeight:' + innerHeight + 'px;help:no;unadorned:no;resizable:no;status:no'); return false; } //========================================================================================== // // 代码描述:关闭窗口 // // 传入参数:无 // // 返回参数:无 // // //========================================================================================== function g_CloseWindow() { window.close() return false }

posted on 2008-11-03 17:11  站得更高,看得更远  阅读(450)  评论()    收藏  举报