HTA APPLICATIONS To avoid the Windows system ActiveX warnings, your program should run under an .hta envelope, ie, as an application (like an .exe file). The following code opens your application under the .hta "umbrella", in a window of your sizing (in the example: 1030 x 95 pix) centered in the lateral direction and low on the screen. It does not allow scrolling. Make a text file and save it under YourChoiceOfName.hta
<HTML> <HEAD> <script language="javascript" type="text/javascript"> function Set(){ // this limits the size of the window opened and positions it var l=(screen.width/2 - 515); // centre - half the window width var t=(screen.height-130); // where you want it vertically self.moveTo(l,t); self.resizeTo('1030','95'); // as you can see, this example opens a longish but squat window, near the task-bar } </script> <TITLE>BlahBlah-The Progam</TITLE> <HTA:APPLICATION ID="BlahBlah-App" BORDER="thin" INNERBORDER="no" SCROLL="no" SCROLLFLAT="no" CAPTION="yes" MAXIMIZEBUTTON="no" SHOWINTASKBAR="yes" SINGLEINSTANCE="yes" SYSMENU="yes" NAVIGABLE="yes" ICON="images/favicon.ico" WINDOWSTATE="normal"> <STYLE> body {margin:0} </STYLE> </HEAD> <BODY onload="Set()" > <IFRAME src="blahblah.htm" application=yes width=1030 // width is that of your window height=95 marginwidth=0 marginheight=0 /// height is that of your window frameborder=0>Iframes not supported</IFRAME> </BODY> </HTML> A full-screen version:
<HTML> <HEAD> <TITLE>Your_Application - The best Whizzo in existance</TITLE> <HTA:APPLICATION ID="oMyApp" BORDER="thin" INNERBORDER="no" SCROLL="no" CAPTION="yes" SCROLLFLAT="no" SHOWINTASKBAR="yes" SINGLEINSTANCE="yes" SYSMENU="yes" NAVIGABLE="yes" ICON="images\your_icon.bmp" WINDOWSTATE="maximize"> <STYLE> body {margin:0} </STYLE> </HEAD> <BODY> <IFRAME src="your_application.htm" application=yes width="100%" height=100% marginwidth=0 marginheight=0 frameborder=0>Iframes not supported</IFRAME> </BODY> </HTML> Visit Microsoft's .hta page A useful site for image conversions to icons is: CoolUtils A 68x68 (or 32x32) pixel icon is appropriate.
Top |