Zoom Functions - MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference

Dreamweaver api reference
Table of Contents

Advertisement

dom.setShowLayoutView()
Availability
Dreamweaver 4.
Description
Places the current document in Layout view if
Arguments
bShow
The
argument is a Boolean value that toggles the current document between
bShow
Layout view and Standard view. If
if
is
bShow
false
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 view's 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();
}
464
Design
bShow
, the current document is in Standard view.
is
.
bShow
true
is
, the current document is in Layout view;
true

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver 8

Table of Contents