MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Spécifications Page 550

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 692
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 549
1 2 ... 545 546 547 548 549 550 551 552 553 554 555 ... 691 692

Commentaires sur ces manuels

Pas de commentaire