beautypg.com

Site.setmediaqueryfile(), Dom.collectmediaqueries(), Zoom functions – Adobe Dreamweaver API Reference CS5 User Manual

Page 425: Dreamweaver.activeviewscale()

background image

420

DREAMWEAVER API REFERENCE

Design

Last updated 8/27/2013

site.setMediaQueryFile()

Availability
Dreamweaver CS5.5.

Description
Sets site-wide media query file for the current site.

Returns
None

dom.collectMediaQueries()

Availability
Dreamweaver CS5.5.

Description
Gets Media Query info (css, Media Query, description/comment, offsets) on the document.

Returns
Array of strings.

Example

{ type: 'link', offsets: {start: 109, end: 213}, desc: 'for phone', descOffsets: {start: 89,
end: 107}, mq: 'only screen and (max-width:320px)', css: 'phone.css' },{ type: 'link', offsets:
{start: 236, end: 364}, desc: 'for tablet', descOffsets: {start: 215, end: 234}, mq: 'only
screen and (min-width:3210px) and (max-width:700px)', css: 'tablet.css' }

Zoom functions

Zoom functions zoom in and out in Design view.

dreamweaver.activeViewScale()

Availability
Dreamweaver 8.

Description
The

activeViewScale

property gets or sets a mutable floating-point. When you get the value, Dreamweaver returns

the scale of the active view 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%.