User Guide
262 Fireworks JavaScript API
Description
Sets the name of the selected element(s).
See also
dom.findNamedElements()
dom.setElementVisible()
Availability
Fireworks 4.
Usage
dom.setElementVisisble(frameIndex, layerIndex, elementIndex, bShow)
Arguments
frameIndex An integer value that specifies the frame that contains the element(s) to be
shown or hidden, starting with
0 (although, to specify the current frame, pass –1 here).
layerIndex An integer value that specifies the layer that contains the element(s) to be
shown or hidden, starting with
0 (although, to specify the current layer, pass –1 here).
elementIndex An integer value that specifies the element(s) to show or hide, starting with
0 (although, to show or hide all the elements in the specified layer, pass –1 here).
bShow If bShow is true, the element(s) are visible. If bShow is false, they are hidden.
Returns
Nothing.
Description
Shows or hides the specified element(s).
Example
The following command hides all the elements in the current frame and layer:
fw.getDocumentDOM().setElementVisible(-1, -1, -1, false)
See also
dom.setElementVisibleByName()