dreamweaver.getBlockVisBoxModelColors()

Availability

Dreamweaver 8.

Description

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.

Arguments

None.

Returns

An array of strings that contains two strings:

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");
      }

 

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