This sample demonstrates how to use WebMenu within a Frameset. It uses the NetMenu WMS sample for the menu creation, the details of which are discussed elsewhere. This sample focuses on how to set up and use framesets.
<p>
This document defines two Frames: the Nav frame and the Main Frame.
<p>
The Nav frame contains a document with only the blue bar and the "File" button. The "File" button's onMouseOver event calls a client-side function which is available in the Main frame once the WebMenu Javascript code is generated. This function is called <b>cswmShowInFrame()</b>. It is similar to <b>cswmShow()</b>, except it can only perform absolute positioning and has 3 parameters: GroupID, X, Y. The X and Y coordinate values should reflect the position you want the Group to appear in the Main frame when the scroll bars are in their initial state.
<p>
The Main frame contains a document with the content you are reading. This page also wholly contains the WebMenu generated code.
<p>
As you scroll the Main frame, the menu Group will always appear in the upper-left corner.
</td>
</tr>
<tr>
<td colspan=2>
<p><b>View the Code:</b></td>
</tr>
<tr>
<td width=10></td>
<td>
<p>
The code for this sample is available in the product installation directory:
<ul>
<li><b>netmenu.wms</b> - The WebMenu Studio project file.
<li><b>default.htm</b> - The Frameset document.
<li><b>menu.htm</b> - The document which contains the "File" button.
<li><b>body.htm</b> - The document which loads the content page and the menu.