Element.translatedclassname, Element.translatedstyle, Inserting spry widgets functions – Adobe Dreamweaver API Reference CS5 User Manual
Page 340: Dom.addjavascript()

335
DREAMWEAVER API REFERENCE
Page content
Last updated 8/27/2013
element.translatedClassName
Availability
Dreamweaver CS3.
Description
This function is the same as the
element.ClassName()
function, but acts on the translated
className
attribute.
element.translatedStyle
Availability
Dreamweaver CS3.
Description
This function is the same as the
element.style()
function, but acts on the translated style attribute.
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
</body>
tag. If the document already has a JavaScript
block there, Dreamweaver does not insert a new
<script>
tag, but appends
"code"
to the content of the
<script>
.
Arguments
code, insideHead
•
The
code
argument is a string containing the JavaScript code to be inserted into the page
•
The
insideHead
argument is a Boolean value that indicates whether to insert the JavaScript block in the head or
in the body. The default is
true
, which inserts the code in the head. If
false
, the code is inserted in the body
immediately before the
</body>
tag. This argument is optional.
Returns
Nothing.