MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 438

Dreamweaver api reference
Table of Contents

Advertisement

Example
The following example checks the value of the margin and padding color; if either isn't white,
it sets them both to white:
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
, or
"selectedDiv"
the properties used for the visual aid that outlines all layout blocks. If
, the function returns the property used for the visual aid that outlines
"selectedDiv"
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
:
"SOLID"
var outlineStyle = dw.getBlockVisOutlineProperties("divs");
if (outlineStyle[2] != "SOLID"){
dw.setBlockVisOutlineProperties("divs", outlineStyle[0],
outlineStyle[1], "SOLID");
}
438
Design
. If the
"layers"
forWhat
value specifies layers.
layers
,
,
"DOTTED"
"DASHED"
argument is
, the function returns
"divs"
, or
"OUTSET"
and makes the outline style
"divs"
,
"divs"
is
forWhat

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents