zoukankan      html  css  js  c++  java
  • 弹出固定子页面,大小固定,open.window()

    弹出的子页面并且剧中.

    <script type="text/javascript">
    function openwindow(url,name,iWidth,iHeight)
    {
        var url;                             //转向网页的地址;
        var name;                            //网页名称,可为空;
        var iWidth;                          //弹出窗口的宽度;
        var iHeight;                         //弹出窗口的高度;
        //获得窗口的垂直位置
        var iTop = (window.screen.availHeight-30-iHeight)/2;       
        //获得窗口的水平位置
        var iLeft = (window.screen.availWidth-10-iWidth)/2;          
        window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no');
    }
    </script>

  • 相关阅读:
    BZOJ 3160 万径人踪灭
    BZOJ 2160 拉拉队排练
    模板 manacher算法
    [Tjoi2016&Heoi2016]求和
    [HZOI 2015]疯狂的机器人
    [BZOJ3456]城市规划
    BZOJ 4372 烁烁的游戏
    洛谷3794 签到题IV
    BZOJ 3730 震波
    BZOJ 4916 神犇和蒟蒻
  • 原文地址:https://www.cnblogs.com/qfb620/p/1981414.html
Copyright © 2011-2022 走看看