• js中弹出各种窗口方法


    //在屏幕中央弹出新窗口 function openNewWindow(width,height,url){     var startW = (screen.availWidth - width)/2;     var startH = (screen.availHeight - height)/2;     window.open(url,"_blank","left="+startW+",top="+startH+",height="+height+",width="+width+",status=no,resizable=1,scrollbars=yes,toolbar=no,menubar=no,location=no"); }

    //在屏幕中央弹出打开Word的新窗口 function openWordWindow(url){     var width=800;     var height=600;     var startW = (screen.availWidth - width)/2;     var startH = (screen.availHeight - height)/2;     window.open(url,"_blank","left="+startW+",top="+startH+",height="+height+",width="+width+",status=no,resizable=1,scrollbars=yes,toolbar=no,menubar=yes,location=no"); }

    //在屏幕中央弹出新窗口

    function openNewWindowByMenu(width,height,url){     var startW = (screen.availWidth - width)/2;     var startH = (screen.availHeight - height)/2;    

    window.open(url,"_blank","left="+startW+",top="+startH+",height="+height+",width="+width+",status=yes,resizable=1,scrollbars=yes,toolbar=yes,menubar=yes,l

    ocation=no"); }

    //弹出全屏窗口

    function openNewWindowByMenu(url){     window.open(url,"_blank","left=0,top=0,height="+screen.availHeight+",width="+screen.availWidth+",status=yes,resizable=1,scrollbars=yes,toolbar=yes,

    menubar=yes,location=no"); }

    //在屏幕中央弹出模态窗口 function openModelWindow(width,height,url){     var d = new Date;     if(url.lastIndexOf("?")==-1){       

      url = url+"?currTime="+d.getTime();     }else{         url = url+"&currTime="+d.getTime();     }     window.showModalDialog(url,window,"dialogHeight:"+height+"px;dialogWidth:"+width+"px;center:Yes;Help:No;Resizable:No;Scroll:auto;Status:no;");  

      }

    //在屏幕中央弹出模态窗口

    function openNewModelWindow(width,height,url,Resizable){     var d = new Date;   

      if(url.lastIndexOf("?")==-1){         url = url+"?currTime="+d.getTime();   

      }else{     

        url = url+"&currTime="+d.getTime();    

    }    

    window.showModalDialog(url,window,"dialogHeight:"+height+"px;dialogWidth:"+width+"px;center:Yes;Help:No;Resizable:yes;Scroll:auto;Status:no;");   

    }

    //处理url,在后面自动加上当前当前时间 function dealUrl(url){    

    var d = new Date;     if(url.lastIndexOf("?")==-1)

    {         url = url+"?currTime="+d.getTime();

      }else{    

         url = url+"&currTime="+d.getTime();  

       }     return url; }

    //在屏幕中央弹出可拖动、可滚动窗口

    function openAbleWindow(width,height,url){

        var d = new Date;  

       if(url.lastIndexOf("?")==-1){   

          url = url+"?currTime="+d.getTime();     }

    else{        

    url = url+"&currTime="+d.getTime();   

      }    

    window.showModalDialog(url,window,"dialogHeight:"+height+"px;dialogWidth:"+width+"px;center:Yes;Help:No;Resizable:Yes;Scroll:Yes;Status:no;");    }

    //在屏幕中央弹出公共的查询模态窗口

    function openCommonQueryModelWindow(url)

    {    

    openModelWindow(600,350,url);

    }

  • 相关阅读:
    sqlHelp.java
    IIS7.0 检测到在集成的托管管道模式下不适用的ASP.NET设置 的解决方法
    [转]安装程序在安装此软件包时遇到一个错误,这可能表示此软件包有错。错误码是29506
    单表中的sql语句
    网页::::无法访问请求的页面,因为该页的相关配置数据无效。
    <authentication mode="Windows"/>
    无法从传输连接中读取数据: 远程主机强迫关闭了一个现有的连接。这个错误很难判断错在哪里,刚开……
    [转] css实现透明度(兼容IE6、IE7、Firefox2.0)
    企业微信机器人消息发送
    阴阳历自动转换工具函数
  • 原文地址:https://www.cnblogs.com/yclnet/p/3237554.html
Copyright © 2020-2023  润新知