MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Dokumentacja Strona 523

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 692
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 522
523
dom.getIsLibraryDocument()
Availability
Dreamweaver 3
Description
Determines whether the document is a library item
Arguments
None.
Returns
A Boolean value that indicates whether the document is an LBI file.
dom.getIsTemplateDocument()
Availability
Dreamweaver 3
Description
Determines whether the document is a template.
Arguments
None.
Returns
A Boolean value that indicates whether the document is a DWT file.
dom.getSelectedEditableRegion()
Availability
Dreamweaver 3
Description
If the selection or insertion point is inside an editable region, gets the position of the editable
region among all others in the body of the document.
Arguments
None.
Returns
An index into the array that “dom.getEditableRegionList()” on page 522 returns.
Example
The following code shows a dialog box with the contents of the selected editable region:
var theDOM = dw.getDocumentDOM();
var edRegs = theDOM.getEditableRegionList();
var selReg = theDOM.getSelectedEditableRegion();
alert(edRegs[selReg].innerHTML);
Przeglądanie stron 522
1 2 ... 518 519 520 521 522 523 524 525 526 527 528 ... 691 692

Komentarze do niniejszej Instrukcji

Brak uwag