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

推荐订阅源

T
Threat Research - Cisco Blogs
V
V2EX
爱范儿
爱范儿
Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
罗磊的独立博客
A
About on SuperTechFans
MyScale Blog
MyScale Blog
S
Security @ Cisco Blogs
博客园 - 聂微东
Simon Willison's Weblog
Simon Willison's Weblog
Cyberwarzone
Cyberwarzone
云风的 BLOG
云风的 BLOG
U
Unit 42
Latest news
Latest news
Apple Machine Learning Research
Apple Machine Learning Research
Security Latest
Security Latest
Y
Y Combinator Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
The Hacker News
The Hacker News
C
Cyber Attacks, Cyber Crime and Cyber Security
Cisco Talos Blog
Cisco Talos Blog
AWS News Blog
AWS News Blog
NISL@THU
NISL@THU
美团技术团队
S
Securelist
P
Privacy International News Feed
T
Tenable Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
Google Online Security Blog
Google Online Security Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
www.infosecurity-magazine.com
www.infosecurity-magazine.com
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
W
WeLiveSecurity
A
Arctic Wolf
Hacker News - Newest:
Hacker News - Newest: "LLM"
Google DeepMind News
Google DeepMind News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Recent Commits to openclaw:main
Recent Commits to openclaw:main
N
Netflix TechBlog - Medium
有赞技术团队
有赞技术团队
V2EX - 技术
V2EX - 技术

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

使用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)  评论()    收藏  举报