• web窗口设置


    function   SetOpenWindowChild(WinName){  
      var   strWindowType="";  
      var   newwin=null;  
      //directories=[yes|no|1|0]   指定是否出现链接工具栏.  
      strWindowType=strWindowType+"directories=no"   +   ",";  
      //channelmode=[yes|no|1|0]   (IE4.0   only)为1时以'全屏模式'(相当于按F11)打开,并出现频道栏.    
      strWindowType=strWindowType+"channelmode=no"   +   ",";  
      //fullscreen=[yes|no|1|0]   (IE4.0   only)   指定全屏模式打开,如果忘了放置关闭按钮,只好用ALT+F4了.    
      strWindowType=strWindowType+"fullscreen=no"   +   ",";  
       
      //height=number   指定窗口的高度(px),最小值为100px    
      strWindowType=strWindowType+"height=250"   +   ",";  
      //width=number   窗口的宽度(px),最小值为100px.  
      strWindowType=strWindowType+"width=480"   +   ",";  
      //left=number   指定窗口的左沿离开屏幕左沿的距离(px).    
      strWindowType=strWindowType+"left=200"   +   ",";  
      //top=number   指定窗口的上沿离开屏幕的距离(px).  
      strWindowType=strWindowType+"top=150"   +   ",";  
       
      //location=[yes|no|1|0]   指定是否出现地址栏.    
      strWindowType=strWindowType+"location=no"   +   ",";  
      //menubar=[yes|no|1|0]   指定是否出现菜单.  
      strWindowType=strWindowType+"menubar=no"   +   ",";  
      //resizable=[yes|no|1|0]   指定窗口是否可被改变大小.    
      strWindowType=strWindowType+"resizable=no"   +   ",";  
      //scrollbars=[yes|no|1|0]   指定是否出现滚动条.    
      strWindowType=strWindowType+"scrollbars=yes"   +   ",";  
      //status=[yes|no|1|0]   指定是否出现状态栏    
      strWindowType=strWindowType+"status=no"   +   ",";  
      //toolbar=[yes|no|1|0]   指定是否出现工具栏   .  
      strWindowType=strWindowType+"toolbar=no"   +   ",";  
       
      //打开窗口  
      if   (WinName=="null"){  
      newwin=window.open("","",strWindowType);  
      return   newwin;  
      }  
      else{  
      window.open(WinName,"",strWindowType);  
      return   null;  
      }  
      } 

  • 相关阅读:
    nodejs gulp如何获取参数
    nodejs 获取当前路径的方法
    gulp 如何排除文件和文件夹
    小技巧css解决移动端ios不兼容position:fixed属性,无需插件
    代码协议相关
    zen-coding
    directive 实例讲解
    angular api 地址
    一步一步搭建hibernate4+ spring+ struts2
    华为荣耀6 H60-L02/L12(联通版)救砖包【适用于无限重启】
  • 原文地址:https://www.cnblogs.com/lauer0246/p/1711203.html
Copyright © 2020-2023  润新知