Adobe 38040334 API Reference - Page 308
Inserting Spry widgets functions, element.translatedClassName, dom.addJavaScript
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 308 highlights
DREAMWEAVER CS3 303 API Reference To assign an attribute value that contains syntax intended to be recognized as an entity reference, you must create an Attr node plus any Text and EntityReference nodes, build the appropriate subtree, and use setAttributeNode to assign it as the value of an attribute. Arguments name, value • The name argument is a DOMString that is the name of the attribute to create or change. • The value argument is a DOMString that is the value to set for the attribute. Returns Nothing. 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 tag. If the document already has a JavaScript block there, Dreamweaver does not insert a new tag, but appends "code" to the content of the .