Using HTML Layout Content in Internet Explorer 3.02 and 4.0ID: Q183977
|
This sample demonstrates a method of presenting HTML Layout content in both Microsoft Internet Explorer 3.02 and Microsoft Internet Explorer 4.0.
The following file is available for download from the Microsoft
Software Library:
~ Alxport.exe (34K)
For more information about downloading files from the Microsoft Software
Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online ServicesMicrosoft Internet Explorer 4.0 Dynamic HTML (DHTML) provides a way to dynamically position HTML elements. Before dynamic positioning was available as Cascading Style Sheets (CSS) style attributes, the HTML Layout ActiveX control was developed to allow Web authors to position elements by means of an HTML Layout file (.alx).
Q183803 INFO: The HTML Layout Control Treated as Unsafe Control in IE4With minor modifications, your existing HTML Layout files can be used in both Internet Explorer 3.02, 4.0, and later.
<DIV ID="SampleLayout"
STYLE="LAYOUT:FIXED;WIDTH:419pt;HEIGHT:149pt;">
... content here ...
</DIV>
<OBJECT ...
STYLE="position:absolute;...">
... params here ...
</OBJECT>
document.write('<OBJECT');
document.write(' CLASSID="CLSID:812AE312-8B8E-11CF-93C8-0AA00C08FDF"');
document.write(' CODEBASE=');
document.write(
'"http://activex.microsoft.com/controls/mspert10.cab#version=1,0,5,1"');
document.write(' ID="Html_Layout1" STYLE="LEFT:0;TOP:0">');
document.write(' <PARAM NAME="ALXPATH" REF VALUE="RedBlue2.htm">');
document.write('</OBJECT>');
document.write('<IFRAME MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER=0');
document.write(' WIDTH=564 HEIGHT=254 SRC="RedBlue2.htm">');
Label2.Visible = false;
<SCRIPT LANGUAGE="VBScript" FOR="Layout1" EVENT="OnLoad">
// handle HTML Layout control OnLoad event; occurs for IE3.02
StartupCode()
</SCRIPT>
<SCRIPT LANGUAGE="VBScript" FOR="Window" EVENT="OnLoad">
// handle window OnLoad event; occurs for IE4 and for IE3.02
// with later scripting engine versions
StartupCode()
</SCRIPT>
For more information, see the MSDN Online Web Workshop:
http://msdn.microsoft.com/workshop/For additional information, please see the following article in the Microsoft Knowledge Base:
Q183803 INFO: The HTML Layout Control Treated as Unsafe Control in IE4
Additional query words: ALX LAYOUT
Keywords : kbcode kbfile kbActiveDocs kbActiveX kbIE400 kbIE401 kbIE302 kbACS kbIE500
Version : WINDOWS:1.0,3.02,4.0,4.01,5.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: May 13, 1999