![MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference Download Page 459](http://html1.mh-extra.com/html/macromedia/dreamweaver-8-dreamweaver-api/dreamweaver-8-dreamweaver-api_reference_3332054459.webp)
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
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...