Adobe 38040334 - Dreamweaver CS3 User Manual page 383

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

Advertisement

dom.hasHorizontalGuide()
Availability
Dreamweaver 8.
Description
This function determines whether the document has a 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
A Boolean value:
if there is a horizontal guide at the location;
true
Example
The following example deletes all guides in the document if the document has a horizontal guide at the specified
location:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.hasHorizontalGuide("10px") == true) {
currentDOM.clearGuides();
}
dom.hasVerticalGuide()
Availability
Dreamweaver 8.
Description
This function determines whether the document has a vertical guide at the current 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
A Boolean value:
if there is a vertical guide at the location;
true
Example
The following example deletes all guides in the document if the document has a vertical guide at the specified
location:
; to specify 50 percent,
location = "10px"
otherwise.
false
; to specify 50 percent,
location = "10px"
otherwise.
false
DREAMWEAVER CS3
API Reference
for pixels and
for
"px"
"%"
.
location = "50%"
for pixels and
for
"px"
"%"
.
location = "50%"
378

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents