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()">

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

  • 相关阅读:
    Windows XP SP1 Privilege Escalation
    A way escape rbash
    A trick in Exploit Dev
    wget.vbs & wget.ps1
    IDEA创建普通java和web项目教程
    初始Mybatis
    JAVA高级面试题
    JVM执行原理
    java-- 位运算
    JAVA---XML
  • 原文地址:https://www.cnblogs.com/shipeng22022/p/4614022.html
Copyright © 2011-2022 走看看