Adobe 38040334 API Reference - Page 372
dom.getShowBoxModel, dom.setShowBlockBackgrounds, to apply background coloring
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 372 highlights
DREAMWEAVER CS3 367 API Reference 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 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. Example See "dom.getShowBlockBackgrounds()" on page 365.
![](/manual_guide/products/adobe-38040334-api-reference-b593776/372.png)