打开与图片大小相等的窗体
来源:互联网 发布:张国立人品知乎 编辑:程序博客网 时间:2024/05/23 11:48
<script type="text/javascript"><!--
function openWithSelfMain(url,name,width,height,top,left,noscrollbars){
width2=(width<=screen.width)?width:(screen.width*3/4);
height2=(height<=screen.height)?height:(screen.height*3/4);
var options = "width=" + width2 + ",height=" + height2;
if(top!="") options += ",top="+ top;
if(left!="") options += ",left="+ left;
options += "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no";
if(noscrollbars == null || noscrollbars == "" || noscrollbars == "0" || width>screen.width || height>screen.height){
options += ",scrollbars=yes";
}else{
options+= ",scrollbars=no";
}
//alert(width+">>"+height);
//return false;
new_window = window.open(url, name, options);
window.self.name = "main";
new_window.focus();
}
//--></script>
function openWithSelfMain(url,name,width,height,top,left,noscrollbars){
width2=(width<=screen.width)?width:(screen.width*3/4);
height2=(height<=screen.height)?height:(screen.height*3/4);
var options = "width=" + width2 + ",height=" + height2;
if(top!="") options += ",top="+ top;
if(left!="") options += ",left="+ left;
options += "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no";
if(noscrollbars == null || noscrollbars == "" || noscrollbars == "0" || width>screen.width || height>screen.height){
options += ",scrollbars=yes";
}else{
options+= ",scrollbars=no";
}
//alert(width+">>"+height);
//return false;
new_window = window.open(url, name, options);
window.self.name = "main";
new_window.focus();
}
//--></script>
- 打开与图片大小相等的窗体
- JavaScript新窗体的打开与关闭
- 打开新的窗体
- 窗体的打开,关闭。
- 打开新的窗体
- 常用窗体打开与关闭
- MDI窗体维护已打开的窗体
- 关闭窗体的同时打开另一个窗体
- jscript的赋值与相等
- 对象的相等与比较
- 对象的相等与比较
- 对象的相等与比较
- 对象的相等与比较
- 对象的相等与比较
- CreateDIBSection 与 CreateDIBITmap 创建的图片大小区别
- 父窗体打开子窗体,子窗体在打开孙子窗体的传值问题
- asp.net中的窗体打开与关闭
- c# 打开exe文件与关闭exe文件 c#服务打开exe时候默认是没有窗体界面的
- nucleus.mockaop.net:opensource .net aop framework
- java新技术突飞猛进!!【转】
- 技术人员的最终出路(转)
- 周末思绪
- 创业投资十戒律
- 打开与图片大小相等的窗体
- 匈牙利命名法
- 美发新造型 名家创意示范集锦(图)
- 给你7个快乐的理由
- 十个美容陷阱
- 取指定范围的随机数
- NULL的特别用法
- Web交互-自动完成时代的到来
- unloadmode 参数返回值