MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Specifiche Pagina 472

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 692
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 471
472
Example
The following code inserts <b>130</b> into the current document:
var theDOM = dreamweaver.getDocumentDOM();
theDOM.insertText(’<b>130</b>’);
The results appear in the Document window, as shown in the following figure:
dom.newBlock()
Availability
Dreamweaver 3
Description
Creates a new block with the same tag and attributes as the block that contains the current
selection or creates a new paragraph if the cursor is outside of all blocks
Arguments
None.
Returns
Nothing.
Example
If the current selection is inside a center-aligned paragraph, a call to
dreamweaver.getDocumentDOM().newBlock() inserts <p align="center"> after the current
paragraph.
dom.notifyFlashObjectChanged()
Availability
Dreamweaver 4
Description
Informs Dreamweaver that the current Flash object file has changed. Dreamweaver updates the
Preview display, resizing it as necessary, and preserving the width-height ratio from the original
size. For example, Flash Text uses this feature to update the text in the Layout view as the user
changes its properties in the Command dialog box.
Arguments
None.
Returns
Nothing.
Vedere la pagina 471
1 2 ... 467 468 469 470 471 472 473 474 475 476 477 ... 691 692

Commenti su questo manuale

Nessun commento