Adobe Dreamweaver API Reference CS5 Uživatelský manuál Strana 340

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 533
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 339
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.
Zobrazit stránku 339
1 2 ... 335 336 337 338 339 340 341 342 343 344 345 ... 532 533

Komentáře k této Příručce

Žádné komentáře