Adobe Dreamweaver API Reference CS5 Instrukcja Użytkownika Strona 461

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 533
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 460
456
DREAMWEAVER API REFERENCE
Code
Last updated 8/27/2013
The bReplaceCurrentSelection argument, which is optional, is a Boolean value that indicates whether the content
should replace the current selection. If the bReplaceCurrentSelection argument is a value of
true, the content
replaces the current selection. If the value is
false, the content is inserted after the current selection.
Returns
Nothing.
Example
The following code inserts the HTML string <b>130</b> into the current document:
var theDOM = dw.getDocumentDOM();
theDOM.insertHTML('<b>130</b>');
The result appears in the Document window.
dom.insertObject()
Availability
Dreamweaver 3.
Description
Inserts the specified object, prompting the user for parameters if necessary.
Arguments
objectName
The objectName argument is the name of an object in the Configuration/Objects folder.
Returns
Nothing.
Example
A call to the dom.insertObject('Button') function inserts a form button into the active document after the current
selection. If nothing is selected, this function inserts the button at the current insertion point.
Note: Although object files can be stored in separate folders, it’s important that these files have unique names. If a file called
Button.htm exists in the Forms folder and also in the MyObjects folder, Dreamweaver cannot distinguish between them.
dom.insertText()
Availability
Dreamweaver 3.
Description
Inserts text content into the document at the current insertion point.
Przeglądanie stron 460
1 2 ... 456 457 458 459 460 461 462 463 464 465 466 ... 532 533

Komentarze do niniejszej Instrukcji

Brak uwag