Dreamweaver 8.
This function gets the state of the visual aid that forces background coloring for all blocks or divs.
allblocks
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.
A Boolean. If true, backgrounds are being forced; if false, backgrounds are not being forced.
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);
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/17_des81.htm