Adobe 38040334 - Dreamweaver CS3 User Manual page 340

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

Advertisement

Description
Gets the descriptions of the available CSS-based layouts
Arguments
None.
Returns
String array of layout descriptions.
dom.applyCSSStyle()
Availability
Dreamweaver 4.
Description
Applies the specified style to the specified element. This function is valid only for the active document.
Arguments
elementNode, styleName, {classOrID}, {bForceNesting}
• The
argument is an element node in the DOM. If the
elementNode
empty string (
), the function acts on the current selection.
""
• The
argument is the name of a CSS style.
styleName
• The
argument, which is optional, is the attribute with which the style should be applied (either
classOrID
or
). If the
"class"
"id"
the selection, the style is applied using
heuristics to determine to which tag the style should be applied.
• The
argument, which is optional, is a Boolean value, which indicates whether nesting is allowed.
bForceNesting
If the
flag is specified, Dreamweaver inserts a new
bForceNesting
existing tags in the document. This argument defaults to a
Returns
Nothing.
Example
The following code applies the
applying a
attribute to the tag that surrounds the selection:
CLASS
var theDOM = dreamweaver.getDocumentDOM('document');
theDOM.applyCSSStyle('','red');
dom.getElementView()
Availability
Dreamweaver 8.
argument is a
elementNode
tags. If the selection is an insertion point, Dreamweaver uses
SPAN
style to the selection, either by surrounding the selection with
red
elementNode
value or an empty string and no tag exactly surrounds
null
tag instead of trying to modify the
SPAN
value if it is not specified.
false
DREAMWEAVER CS3
API Reference
argument is a
value or an
null
tags or by
SPAN
335

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents