MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Especificaciones Pagina 550

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 692
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 549
1 2 ... 545 546 547 548 549 550 551 552 553 554 555 ... 691 692

Comentarios a estos manuales

Sin comentarios