Adobe 38040334 - Dreamweaver CS3 User Manual page 378

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

Advertisement

Description
This function determines whether to delete all guides in the document.
Arguments
None.
Returns
Nothing.
Example
The following example deletes all guides in the document if the document has at least one guide:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.hasGuides() == true) {
currentDOM.clearGuides();
}
dom.createHorizontalGuide()
Availability
Dreamweaver 8.
Description
This function creates a horizontal guide at the current location in the document.
Arguments
location
• 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 horizontal guide in the document at the current location:
var currentDOM = dw.getDocumentDOM();
currentDOM.createHorizontalGuide("10px");
dom.createVerticalGuide()
Availability
Dreamweaver 8.
Description
This function creates a vertical guide at the current location in the document.
Arguments
location
for pixels and
"px"
; to specify 50 percent,
location = "50%"
for percentage. For example, to specify
"%"
.
DREAMWEAVER CS3
373
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents