This is a copy of the NetMenu sample, but instead of using images as the menu buttons, it uses simple text hyperlinks.
<p>
By placing a transparent 1 x 1 pixel gif directly in front of the text hyperlink, you can have the menu group anchor to the image (relative positioning), but seemingly anchor to the text itself.
<p>
Why not just anchor the groups directly to the text hyperlink? Because relative positioning will not work on all browsers that way (it works well in IE). Images are the one sure way to use relatively positioned groups and have cross-browser compatible code.
<p>
Also note the use of the offset parameters in the cswmShow() function call. This allows you to offset the group by the specified pixel amounts from it's relative position. In this case, moving the group down a few pixels creates the needed space between the bottom of the text and the beginning of the group.
</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 (this file)</b> - Uses the WebMenu compiled output and discusses the sample.
<li><b>./includes/*</b> - The WebMenu output compiled from the studio application.
<li><b>./images/*</b> - The images used in this sample.