MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Dokumentacja Strona 550

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 692
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 549
550
Example
function applyFormatToSelectedTable(){
// get current selection
var selObj = dw.getDocumentDOM().getSelectedNode();
alternateRows(dwscripts.findDOMObject("presetNames").selectedIndex,
findTable());
// restore original selection, if it still exists; if not, just select the
// table.
var selArr;
if (dw.nodeExists(selObj))
selArr = dom.nodeToOffsets(selObj);
else
selArr = dom.nodeToOffsets(findTable());
dom.setSelection(selArr[0],selArr[1]);
}
}
dreamweaver.selectAll()
Availability
Dreamweaver 3
Description
Performs a Select All operation in the active Document window or the Site panel; or, on the
Macintosh, the edit field that has focus in a dialog box or floating panel.
Note: If the operation takes place in the active document, it usually selects all the content in the active document. In
some cases (for example, when the insertion point is inside a table), however, it selects only part of the active
document. To set the selection to the entire document, use
dom.setSelection().
Arguments
None.
Returns
Nothing.
Enabler
“dreamweaver.canSelectAll()” on page 424
Przeglądanie stron 549
1 2 ... 545 546 547 548 549 550 551 552 553 554 555 ... 691 692

Komentarze do niniejszej Instrukcji

Brak uwag