保存成1.hta,在ie的地址栏中打开它
<HTML>
<HEAD>
  <TITLE>HTA Demo</TITLE>
    <HTA:APPLICATION ID="oHTA"
     APPLICATIONNAME="myApp"
     BORDER="thin"
     BORDERSTYLE="normal"
     CAPTION="yes"
     ICON=""
     MAXIMIZEBUTTON="yes"
     MINIMIZEBUTTON="yes"
     SHOWINTASKBAR="no"
     SINGLEINSTANCE="no"
     SYSMENU="yes"
     VERSION="1.0"
     WINDOWSTATE="maximize"/>  <SCRIPT>  /* This function also retrieves the value of the commandLine property,
     which cannot be set as an attribute.  */
   
  function window.onload()
  {
     sTempStr = "applicationName  = " + oHTA.applicationName + "\n" + 
                "border           = " + oHTA.border          + "\n" +
                "borderStyle      = " + oHTA.borderStyle     + "\n" + 
                "caption          = " + oHTA.caption         + "\n" +
                "commandLine      = " + oHTA.commandLine     + "\n" +
                "icon             = " + oHTA.icon            + "\n" +
                "maximizeButton   = " + oHTA.maximizeButton  + "\n" +
                "minimizeButton   = " + oHTA.minimizeButton  + "\n" + 
                "showInTaskBar    = " + oHTA.showInTaskbar   + "\n" +
                "singleInstance   = " + oHTA.singleInstance  + "\n" +  
                "sysMenu          = " + oHTA.sysMenu         + "\n" + 
                "version          = " + oHTA.version         + "\n" + 
                "windowState      = " + oHTA.windowState     + "\n" ;
  
     oPre.innerText = sTempStr;   
  }
  </SCRIPT>
</HEAD>
<BODY SCROLL="no">
  <PRE ID=oPre>  </PRE>
</BODY>
</HTML>

解决方案 »

  1.   

    兄弟你的代码ie几的版本?我的出来
    applicationName  = undefined
    这样的把function window.onload()
    里的内容列出来了什么效果也没有。。
    你理解我的意思了吗?其实我也说不大明白..
    就是产生一个全屏的IE然后设置大小再编写拖动ie的代码.
      

  2.   

    applicationName  = undefinedborder           = undefinedborderStyle      = undefinedcaption          = undefinedcommandLine      = undefinedicon             = undefinedmaximizeButton   = undefinedminimizeButton   = undefinedshowInTaskBar    = undefinedsingleInstance   = undefinedsysMenu          = undefinedversion          = undefinedwindowState      = undefined
      

  3.   

    楼上各位,其实上面用了一个极端的方法,其实用fullscreen=2就可以实现!但顶楼的方法也有一定道理,但大家注意了,他用的扩展名是:.hta而不是.htm,所以大家才看到如上结果!<HTML>
    <HEAD>
      <TITLE>HTA Demo</TITLE>
        <HTA:APPLICATION ID="oHTA"
         APPLICATIONNAME="myApp"
         BORDER="thin"
         BORDERSTYLE="normal"
         CAPTION="yes"
         ICON=""
         MAXIMIZEBUTTON="yes"
         MINIMIZEBUTTON="yes"
         SHOWINTASKBAR="no"
         SINGLEINSTANCE="no"
         SYSMENU="yes"
         VERSION="1.0"
         WINDOWSTATE="maximize"/>  <SCRIPT>  /* This function also retrieves the value of the commandLine property,
         which cannot be set as an attribute.  */
       
      function window.onload()
      {
         sTempStr = "applicationName  = " + oHTA.applicationName + "\n" + 
                    "border           = " + oHTA.border          + "\n" +
                    "borderStyle      = " + oHTA.borderStyle     + "\n" + 
                    "caption          = " + oHTA.caption         + "\n" +
                    "commandLine      = " + oHTA.commandLine     + "\n" +
                    "icon             = " + oHTA.icon            + "\n" +
                    "maximizeButton   = " + oHTA.maximizeButton  + "\n" +
                    "minimizeButton   = " + oHTA.minimizeButton  + "\n" + 
                    "showInTaskBar    = " + oHTA.showInTaskbar   + "\n" +
                    "singleInstance   = " + oHTA.singleInstance  + "\n" +  
                    "sysMenu          = " + oHTA.sysMenu         + "\n" + 
                    "version          = " + oHTA.version         + "\n" + 
                    "windowState      = " + oHTA.windowState     + "\n" ;
      
         oPre.innerText = sTempStr;   
      }
      </SCRIPT>
    </HEAD>
    <BODY SCROLL="no">
      <PRE ID=oPre>  </PRE>
    wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
    </BODY>
    </HTML>
      

  4.   

    <div id="cap" style="position:absolute;width=600;height=15;top=0;left=0;background-color=#aaaaaa">
    <table width="600" height="15" border="0">
      <tr>
        <td OnMouseMove="mousem();" OnMouseDown="moused();" OnMouseUp="mouseu();" OnMouseOut="mouseout();"></td>
      </tr>
    </table>
    </div><script>
    var down=false;
    var xx,yy;
    window.opener.opener=null;function moused()
    {
    xx=event.offsetX;
    yy=event.offsetY;
    down=true; }function mousem()
    {
    if(down){
    window.moveTo(event.screenX-xx,event.screenY-yy);
    }
    }function mouseu()
    {
    down=false;
    }
    function mouseout()
    {
    down=false;
    }
    self.resizeTo(600,415); </script>
    这个是我写的移动代码。可是鼠标移动快了窗体就会滑掉。。请问怎么解决?