The cswmShow function is used to make a menu Group visible.

Parameters

GroupID
The ID of the WebMenu Group that will be shown.

HTMLElementNameOrID
The HTML element's Name or ID attribute used to determine relative position. (can be an empty string if IsAbsolute is true).

Direction
The direction the group flies out from its position. Possible values are "above", "below", "left" or "right".

OffsetX
Offsets the group along the X from the HTML element in relative mode. Sets the page coordinate in absolute mode. Can be a negative integer.

OffsetY
Offsets the group along the Y from the HTML element in relative mode. Sets the page coordinate in absolute mode. Can be a negative integer.

IsAbsolute
If true, position of the group will be absolute on the page. If false, position of the group will be relative to the named HTML element.

Return Value

none

Example

The following code demonstrates how to invoke cswmShow from a mouse over event and position it at page coordinates 50 by 50.

[HTML]

<A href="/news/default.asp"
  onmouseover="cswmShow('News', '', 'below', 50, 50, true);"
  onmouseout="cswmHide();">
</A>

		

Copyright © Coalesys, Inc.