Adobe 38040334 - Dreamweaver CS3 User Manual page 379

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
argument is the location of the guide with both the value and units as one string, with no space
location
between the value and units. The possible units are
10 pixels,
location = "10px"
Returns
Nothing.
Example
The following example creates a vertical guide in the document at the current location:
var currentDOM = dw.getDocumentDOM();
currentDOM.createVerticalGuide("10px");
dom.deleteHorizontalGuide()
Availability
Dreamweaver 8.
Description
This function deletes the horizontal guide at the specified location.
Arguments
location
• The
argument is a string that represents the location in the document to test, with both the value and
location
units as one string, with no space between the value and units. The possible units are
percentage. For example, to specify 10 pixels,
Returns
Nothing.
Example
The following example deletes the horizontal guide at the specified location in the document:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.hasHorizontalGuide("10px") == true) {
currentDOM.deleteHorizonalGuide("10px");
}
dom.deleteVerticalGuide()
Availability
Dreamweaver 8.
Description
This function deletes the vertical guide at the specified location.
Arguments
location
for pixels and
"px"
; to specify 50 percent,
location = "50%"
location = "10px"
for percentage. For example, to specify
"%"
.
for pixels and
"px"
; to specify 50 percent,
location = "50%"
DREAMWEAVER CS3
374
API Reference
for
"%"
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents