Inserting Spry Widgets Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

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

Advertisement

To assign an attribute value that contains syntax intended to be recognized as an entity reference, you must create an
node plus any
and
Attr
Text
to assign it as the value of an attribute.
Arguments
name, value
• The
argument is a DOMString that is the name of the attribute to create or change.
name
• The
argument is a DOMString that is the value to set for the attribute.
value
Returns
Nothing.
element.translatedClassName
Availability
Dreamweaver CS3.
Description
This function is the same as the
element.translatedStyle
Availability
Dreamweaver CS3.
Description
This function is the same as the
Example
var div1 = dom.getElementById("div1");
div1.translatedStyle.display = "none";

Inserting Spry widgets functions

Dreamweaver provides the following functions to facilitate inserting Spry widgets.
dom.addJavaScript()
Availability
Dreamweaver CS3.
Description
This function tells Dreamweaver to insert a JavaScript block either in the head or in the body. If the location is inside
the body, the JavaScript block is inserted immediately before the
cript block there, Dreamweaver does not insert a new
.
<script>
nodes, build the appropriate subtree, and use
EntityReference
element.ClassName()
function, but acts on the translated style attribute.
element.style()
<script>
function, but acts on the translated
tag. If the document already has a JavaS-
</body>
tag, but appends
"code"
DREAMWEAVER CS3
API Reference
setAttributeNode
attribute.
className
to the content of the
303

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents