User Guide

Layout view functions 461
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 allblocks argument, which is required, is a Boolean. Set the value to true to apply
background coloring to div tags only. Set the value to
false to apply background coloring
to all block elements.
Returns
Nothing.
000_DW_API_Print.book Page 461 Wednesday, July 20, 2005 11:58 AM