User Guide
CSS functions 439
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.
Arguments
forWhat, color, width, {style}
■ The forWhat argument, which is required, is a string that specifies for what the specified
color and width are used. Possible values are
"divs", "selectedDiv", or "layers". If the
value is
"layers", the specified color and width are used to outline all layers when the
Layout Block Outlines visual aid is on. If the value is
"divs", the color and width
arguments are used to outline all divs and other layout blocks. If the value is
"selectedDiv", the color and width arguments are used to outline any div or layout
block that is selected.
■ The color argument, which is required, is a string that contains the hexadecimal value
that indicates the RGB color in the form #RRGGBB.
000_DW_API_Print.book Page 439 Wednesday, July 20, 2005 11:58 AM