zoukankan      html  css  js  c++  java
  • window.open 弹出新窗口

    1、可重复打开多个
    2、桌面居中打开
    $('#openPage').click(function () {
        var windurl = location.href + "&Popup=true";
        var pageName = "poppanel" + eval(parseInt(10000 * Math.random()));
    
        var iWidth = 800; //弹出窗口的宽度
        var iHeight = 600;     //弹出窗口的高度;
        var iTop = (window.screen.availHeight - 30 - iHeight) / 2;     //获得窗口的垂直位置;
        var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;     //获得窗口的水平位置;
    
        window.open(windurl, pageName, "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left= " + iLeft + ",location=no,toolbar=no, menubar=no, scrollbars=no, status=no, resizable=yes", false);
    });
  • 相关阅读:
    洛谷 1736 创意吃鱼法
    有多重限制的背包
    洛谷 1417 烹调方案
    2008 noip 传纸条
    环形石子合并 洛谷 1880 && hdu 3506 Monkey Party
    洛谷 1282 多米诺骨牌
    (金明的预算方案)依赖性的背包
    分组背包问题
    混合背包问题
    多重背包问题
  • 原文地址:https://www.cnblogs.com/zhangpengshou/p/3103111.html
Copyright © 2011-2022 走看看