zoukankan      html  css  js  c++  java
  • 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 +',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no');

       }

       function openwindowpage() {

           openwindow("/SitePages/uploadPicture.aspx","加入图片","500","480");

        }

  • 相关阅读:
    C#如何取硬件标志
    在C#中利用Excel做高级报表
    C#实现网段扫描
    用C#编写一个抓网页的应用程序
    C# 中操作API
    C#串口操作
    C#里的InputBox
    使用C#进行Word 2002和Excel 2002编程
    用C#快速往Excel写数据
    postgres 查看数据库大小
  • 原文地址:https://www.cnblogs.com/gcczhongduan/p/5285068.html
Copyright © 2011-2022 走看看