User Guide

CSS functions 437
Example
The following example turns off rendering of CSS styles:
dw.cssStylePalette.setDisplayStyles(false);
dreamweaver.cssStylePalette.setMediaType()
Availability
Dreamweaver MX 2004.
Description
Sets the target media type for rendering. Refreshes the rendering of all open documents.
Arguments
mediaType
The mediaType argument specifies the new target media type.
Returns
Nothing.
Example
dw.cssStylePalette.setMediaType("print");
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:
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
000_DW_API_Print.book Page 437 Wednesday, July 20, 2005 11:58 AM