User Guide

440 Design
The width argument, which is required, is an integer that indicates the outline width, in
pixels.
The style argument, which is optional, is a string that indicates the style of the outline.
Possible values are
"SOLID", "DOTTED", "DASHED", and "OUTSET". The "OUTSET" value is
applicable to layers only. This argument is ignored when the
forWhat argument’s value is
"selectedDiv".
Returns
Nothing.
Example
See dreamweaver.getBlockVisOutlineProperties()” on page 438.
dreamweaver.setDivBackgroundColors()
Availability
Dreamweaver 8.
Description
This function sets the colors used by the Layout Block Backgrounds visual aid.
Arguments
colors
The colors argument, which is required, is an array of strings that contains all the colors,
represented as hexadecimal values in the form #RRGGBB. The array must contain 16
colors.
Returns
Nothing.
Example
The following example makes sure there are no more than 16 colors specified as div
background colors and, if so, sets the colors used as background colors to shades of gray:
var currentDOM = dw.getDocumentDOM();
var divColors = currentDOM.getDivBackgroundColors("divs");
var shadesOfGray = new Array["#000000", "#111111", "#222222", "#333333",¬
"#444444", "#555555", "#666666", "#777777", "#888888", "#999999", ¬
"#AAAAAA", "#BBBBBB", "#CCCCCC", "#DDDDDD", "#EEEEEE", "#FFFFFF"]¬
var howManyColors = divColors.length;
if howManyColors <= 16{
for (var i = 0; i < howManyColors; i++)
000_DW_API_Print.book Page 440 Wednesday, July 20, 2005 11:58 AM