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

推荐订阅源

S
SegmentFault 最新的问题
A
About on SuperTechFans
NISL@THU
NISL@THU
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
小众软件
小众软件
博客园 - Franky
罗磊的独立博客
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
Hugging Face - Blog
Hugging Face - Blog
云风的 BLOG
云风的 BLOG
MongoDB | Blog
MongoDB | Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
Hacker News - Newest:
Hacker News - Newest: "LLM"
Cyberwarzone
Cyberwarzone
C
CXSECURITY Database RSS Feed - CXSecurity.com
Project Zero
Project Zero
Security Latest
Security Latest
L
Lohrmann on Cybersecurity
AWS News Blog
AWS News Blog
The Hacker News
The Hacker News
I
Intezer
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Privacy International News Feed
月光博客
月光博客
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
D
Darknet – Hacking Tools, Hacker News & Cyber Security
博客园_首页
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tor Project blog
博客园 - 三生石上(FineUI控件)
The Last Watchdog
The Last Watchdog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org

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

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