beautypg.com

Dom.resizeselectionby(), Dom.setlayertag() – Adobe Dreamweaver API Reference CS5 User Manual

Page 410

background image

405

DREAMWEAVER API REFERENCE

Design

Last updated 8/27/2013

Arguments
x, y

The x argument is the number of pixels that the selection must move horizontally.

The y argument is the number of pixels that the selection must move vertically.

Returns
Nothing.

dom.resizeSelectionBy()

Availability
Dreamweaver 3.

Description
Resizes the currently selected layer or hotspot.

Arguments
left, top, bottom, right

The left argument is the new position of the left boundary of the layer or hotspot.

The top argument is the new position of the top boundary of the layer or hotspot.

The bottom argument is the new position of the bottom boundary of the layer or hotspot.

The right argument is the new position of the right boundary of the layer or hotspot.

Returns
Nothing.

Example
If the selected layer has the Left, Top, Width, and Height properties shown, calling

dw.getDocumentDOM().resizeSelectionBy(10,30,30,10)

–– is equivalent to resetting Left to 40, Top to 20,

Width to 240, and Height to 240.

dom.setLayerTag()

Availability
Dreamweaver 3.

Description
Specifies the HTML tag that defines the selected layer or layers.

Arguments
tagName

The tagName argument must be

"layer"

,

"ilayer"

,

"div"

, or

"span"

.