User Guide

Layout view functions 459
dom.getShowBlockBackgrounds()
Availability
Dreamweaver 8.
Description
This function gets the state of the visual aid that forces background coloring for all blocks or
divs.
Arguments
allblocks
The allblocks argument, which is required, is a Boolean. Set the value to true to apply
to div tags only. Set the value to
false to apply to all block elements.
Returns
A Boolean. If true, backgrounds are being forced; if false, backgrounds are not being
forced.
Example
The following example checks whether the background coloring for all blocks is being forced,
and if not, forces background coloring for all blocks.:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowBlockBackgrounds(false) == false){
currentDOM.setShowBlockBackgrounds(false);
}
dom.getShowBlockBorders()
Availability
Dreamweaver 8.
Description
This function gets the state of the visual aid that draws borders for all blocks or all divs.
Arguments
allblocks
The allblocks argument, which is required, is a Boolean. Set the value to true to get the
state for div tags only. Set the value to
false to get the state for all block elements.
000_DW_API_Print.book Page 459 Wednesday, July 20, 2005 11:58 AM