Feb 17
显示行号 复制代码 这是一段程序代码。
  1. <script type="text/javascript"> 
    
  2. function Launch(page, width, height) 
    
  3. { 
    
  4.   if (!!window.ActiveXObject)
    
  5.   {
    
  6.       //IE??????
    
  7.       var isIE6=!window.XMLHttpRequest;
    
  8.       if (isIE6)
    
  9.       {
    
  10.         width+=6;
    
  11.         height+=25;  
    
  12.       }
    
  13.       showModelessDialog(page,false,"dialogWidth:" + width + "px;dialogHeight:" + height + "px;center:yes;help:no;resizable:no;status:no;scroll:no");
    
  14.   }
    
  15.   else
    
  16.   {
    
  17.       //??IE??????
    
  18.       OpenWin = this.open(page, "web", "toolbar=no, menubar=no ,location=no, scrollbars=no, resizable=no, width=" + width + ", height=" + height + ", top=" + (screen.height/2 - height/2) + ", left=" + (screen.width/2 - width/2) + "\""); 
    
  19.   } 
    
  20. }
    
  21. </script>
    
  22. 
    

written by panhezeng \\ tags:

©panhezeng for 阿潘道, 2006-2018. 原文地址:http://apsay.com/?p=984
本文遵循署名-非商业性使用共享协议,转载请注明。

Leave a Reply