Adobe 38040334 - Dreamweaver CS3 User Manual page 371

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

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
argument, which is required, is a Boolean. Set the value to
allblocks
Set the value to
to get the state for all block elements.
false
Returns
A Boolean value; if
, borders are displayed; if
true
Example
The following example checks whether the block borders visual aid is on and, if not, turns it on:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowBlockBorders(false) == false){
currentDOM.setShowBlockBorders(true);
}
dom.getShowBlockIDs()
Availability
Dreamweaver 8.
Description
This function gets the state of the visual aid that displays ID and class information for all blocks or divs.
Arguments
allblocks
• The
argument, which is required, is a Boolean. Set the value to
allblocks
tags only. Set the value to
Returns
A Boolean: If
, IDs are displayed; if
true
Example
The following example checks whether the block IDs are displayed and, if not, displays them:
false
to display the ID and class for all block elements.
false
IDs are not displayed.
false
to get the state for div tags only.
true
, borders are not displayed.
true
DREAMWEAVER CS3
API Reference
to display ID and class for div
366

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents