beautypg.com

Dom.settracingimageposition(), Dom.settracingimageopacity() – Adobe Dreamweaver API Reference CS5 User Manual

Page 414

background image

409

DREAMWEAVER API REFERENCE

Design

Last updated 8/27/2013

Returns
Nothing.

dom.setTracingImagePosition()

Availability
Dreamweaver 3.

Description
Moves the upper-left corner of the tracing image to the specified coordinates. If the arguments are omitted, the Adjust
Tracing Image Position dialog box appears.

Arguments
x, y

The x argument is the number of pixels that specify the horizontal coordinate.

The y argument is the number of pixels that specify the vertical coordinate.

Returns
Nothing.

Enabler
See “

dom.hasTracingImage()

” on page 502.

dom.setTracingImageOpacity()

Availability
Dreamweaver 3.

Description
Sets the opacity of the tracing image.

Arguments
opacityPercentage

The opacityPercentage argument must be a number between 0 and 100.

Returns
Nothing.

Enabler
See “

dom.hasTracingImage()

” on page 502.

Example
The following code sets the opacity of the tracing image to 30%:

dw.getDocumentDOM().setTracingOpacity('30');