Dreamweaver 8.
This function gets the outline properties for the block visualization visual aids.
forWhat
forWhat argument, which is required, is a string. Possible values are "divs", "selectedDiv", or "layers". If the forWhat argument is "divs", the function returns the properties used for the visual aid that outlines all layout blocks. If forWhat is "selectedDiv", the function returns the property used for the visual aid that outlines selected layout blocks. The layers value specifies layers.
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"
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");
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/17_des35.htm