var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowBlockIDs(false) == false){
currentDOM.setShowBlockIDs(true);
}
dom.getShowBoxModel()
Availability
Dreamweaver 8.
Description
This function turns on and off the visual aid that colors the full box model for the selected block.
Arguments
None.
Returns
Nothing.
Example
The following example checks whether the full box model for the selected box is displayed in color, and, if not, colors
it:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowBoxModel() == false){
currentDOM.setShowBoxModel(true);
}
dom.setShowBlockBackgrounds()
Availability
Dreamweaver 8.
Description
This function turns on and off the visual aid that forces background coloring for all blocks or all divs.
Arguments
allblocks
• The
argument, which is required, is a Boolean. Set the value to
allblocks
div tags only. Set the value to
Returns
Nothing.
Example
See "dom.getShowBlockBackgrounds()" on page 365.
to apply background coloring to all block elements.
false
to apply background coloring to
true
DREAMWEAVER CS3
367
API Reference