MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Specifikace Strana 523

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 692
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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);
Zobrazit stránku 522
1 2 ... 518 519 520 521 522 523 524 525 526 527 528 ... 691 692

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

Žádné komentáře