MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 475

Dreamweaver api reference
Table of Contents

Advertisement

Arguments
location
The
argument is a string that represents the location in the document to test,
location
with both the value and units as one string, with no space between the value and units.
The possible units are
pixels,
location = "10px"
Returns
A Boolean value:
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,
location
with both the value and units as one string, with no space between the value and units.
The possible units are
pixels,
location = "10px"
Returns
A Boolean value:
true
for pixels and
"px"
; to specify 50 percent,
if there is a horizontal guide at the location;
for pixels and
"px"
; to specify 50 percent,
if there is a vertical guide at the location;
for percentage. For example, to specify 10
"%"
location = "50%"
for percentage. For example, to specify 10
"%"
location = "50%"
false
Guide functions and properties
.
otherwise.
false
.
otherwise.
475

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver 8

Table of Contents