Dreamweaver.getdivbackgroundcolors(), Dreamweaver.setblockvisoutlineproperties() – Adobe Dreamweaver API Reference CS5 User Manual
Page 402

397
DREAMWEAVER API REFERENCE
Design
Last updated 8/27/2013
Returns
An array of strings that contains three strings:
•
color
, which is the hexadecimal value of the RGB color, in the form #RRGGBB
•
width
, which indicates the width in pixels
•
style
, which is
"SOLID"
,
"DOTTED"
,
"DASHED"
, or
"OUTSET"
Example
The following example gets the outline properties for
"divs"
and makes the outline style
"SOLID"
:
var outlineStyle = dw.getBlockVisOutlineProperties("divs");
if (outlineStyle[2] != "SOLID"){
dw.setBlockVisOutlineProperties("divs", outlineStyle[0], outlineStyle[1], "SOLID");
}
dreamweaver.getDivBackgroundColors()
Availability
Dreamweaver 8.
Description
This function gets the colors used by the Layout Block Backgrounds visual aid.
Arguments
None.
Returns
An array of strings that contains the 16 colors, with each color represented by the hexadecimal value of the RGB color,
in the form #RRGGBB.
Example
The following example gets the background colors used by the Layout Block Backgrounds visual aid:
var backgroundColors = dreamweaver.getDivBackgroundColors();
dreamweaver.setBlockVisOutlineProperties()
Availability
Dreamweaver 8.
Description
This function sets the outline properties for the block visualization visual aids.