User Guide

464 Design
dom.setShowLayoutView()
Availability
Dreamweaver 4.
Description
Places the current document in Layout view if bShow is true.
Arguments
bShow
The bShow argument is a Boolean value that toggles the current document between
Layout view and Standard view. If
bShow is true, the current document is in Layout view;
if
bShow is false, the current document is in Standard view.
Returns
Nothing.
Zoom functions
Zoom functions zoom in and out in Design view.
dreamweaver.activeViewScale()
Availability
Dreamweaver 8.
Description
This function gets or sets a mutable floating point property. When you get the value,
Dreamweaver returns the active views scale as it appears in the Zoom combo box, divided by
100. For example, 100% is 1.0; 50% is 0.5, and so on. When you set the value, Dreamweaver
sets the value in the Zoom combo box. The value can be between 0.06 and 64.00, which
correspond to 6% and 6400%.
Example
The following example gets the value of the current view’s scale and zooms in if it can and if
the scale is less than or equal to 100%:
if (canZoom() && dreamweaver.activeViewScale <= 1.0) {
zoomIn();
}
000_DW_API_Print.book Page 464 Wednesday, July 20, 2005 11:58 AM