Dreamweaver 8.
This function gets the colors used to render the box model for a selected block when the Layout Block Box Model visual aid is on.
None.
An array of strings that contains two strings:
marginColor, which is the hexadecimal value of the RGB color, in the form #RRGGBB paddingColor, which is the hexadecimal value of the RGB color, in the form #RRGGBB
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");
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/17_des34.htm