zoukankan      html  css  js  c++  java
  • 弹出窗口,并适合屏幕大小

    window窗口方式


    function winModalFullScreen() {

    var sheight = screen.height - 95;
    var swidth = screen.width - 8;

    window.open("${CTX_ROOT}/View3d/index.htm", "newwindow","height="+sheight+", width="+swidth+", top=0,left=0,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no,status=no")

    }


    showModalDialog方式  (此种方式,个人发现打开窗口后,原来那个页面就跟把数据库冻结了似的,不动了,仅个人观点)

    function winModalFullScreen() {
    var sheight = screen.height - 95;
    var swidth = screen.width - 8;
    var winoption = "dialogHeight:" + sheight + "px;dialogWidth:" + swidth
    + "px;status:no;scroll:no;center:yes;help=no;";
    var NewFull = window.showModalDialog("${CTX_ROOT}/View3d/index.htm",
    newwindow, winoption);
    return NewFull; 
    }


    调用 <a href="javascript:winModalFullScreen()">

    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    进程线程模型
    操作系统运行机制
    操作系统概论
    排序
    win32消息机制
    win32框架
    map
    deque & list
    vector内部实现2
    蓝桥杯 文化之旅 图论 待复习
  • 原文地址:https://www.cnblogs.com/shipeng22022/p/4614022.html
Copyright © 2011-2022 走看看