CloneObject()

Syntax:

CloneObject( PosX, PosY, Visible )

Parameters:

PosX – the x-coordinate of the cloned object. If PosX is specified, then you must also specify a value for the PosY parameter as well. This parameter is optional and if no value is set, the cloned object will be positioned over the original object.

PosY – the y-coordinate of the cloned object. If PosY is specified, then you must also specify a value for the PosX parameter as well. This parameter is optional and if no value is set, the cloned object will be positioned over the original object.

Visible – used to show or hide the cloned object. Visible can be set to true or false. If true, the cloned object is shown on screen and if false, the cloned object is not visible. This parameter is optional and if no value is set then the cloned object will be set to the same state as the object being cloned i.e. if the original object is hidden then the cloned object is hidden; if original object is displayed then so is the cloned object.

Return:

The new clone of the object.

Remarks:

This function makes an identical copy of the specified object and returns this new clone. The clone will appear on the page over the top of the original object unless you have set the PosX and PosY coordinates.

image\Script_Button.jpgExamples