SGPopup Constructor

Initializes a new instance of the SGPopup class.

SGPopup([caption], [src], [left], [top], [width], [height], [timeout]);

Parameter

Description

caption

Optional, default: null

The pop-up caption

If this parameter is null, the pop-up window has no caption.

src

Optional, default: null

A URL that is the source HTML to be displayed in the pop-up window

If this parameter is null or undefined, the pop-up is assumed to be a simple text string

left

Optional, default: null

Left x coordinate (in pixels), relative to the 3D window top left pixel, where the pop-up will be displayed

If this parameter is null, the pop-up is horizontally centered

top

Optional, default: null

Top y coordinate (in pixels), relative to the 3D window top left pixel, where the pop-up will be displayed

If this parameter is null, the pop-up is vertically centered

width

Optional, default: null

The width (in pixels) of the pop-up window

This parameter can also be a string that represents a percentage of the 3D window width (e.g., 80%). If this parameter is null, the width is half of the 3D window width.

height

Optional, default: null

The height (in pixels) of the pop-up window

This parameter can also be a string that represents a percentage of the 3D window height (e.g., 80%). If this parameter is null, the height is half of the 3D window height

timeout

Optional, default: undefined (no time-out)

Time, in milliseconds, that the pop-up window is displayed