Adobe 38040334 - Dreamweaver CS3 User Manual page 354

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

Advertisement

var boxColors = dreamweaver.getBlockVisBoxModelColors();
if ((boxColors[0] != "#FFFFFF") || (boxColors[1] != "#FFFFFF)){
currentDOM.setBlockVisBoxModelColors("#FFFFFF", "#FFFFFF");
}
dreamweaver.getBlockVisOutlineProperties()
Availability
Dreamweaver 8.
Description
This function gets the outline properties for the block visualization visual aids.
Arguments
forWhat
• The
argument, which is required, is a string. Possible values are
forWhat
If the
argument is
forWhat
layout blocks. If
forWhat
selected layout blocks. The
Returns
An array of strings that contains three strings:
, which is the hexadecimal value of the RGB color, in the form #RRGGBB
color
, which indicates the width in pixels
width
, which is
style
"SOLID"
Example
The following example gets the outline properties for
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.
, the function returns the properties used for the visual aid that outlines all
"divs"
is
, the function returns the property used for the visual aid that outlines
"selectedDiv"
value specifies layers.
layers
,
,
, or
"DOTTED"
"DASHED"
"divs"
"divs"
"OUTSET"
and makes the outline style
DREAMWEAVER CS3
,
, or
"selectedDiv"
"layers"
:
"SOLID"
349
API Reference
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents