Adobe Dreamweaver API Reference CS5 Manuale Utente Pagina 347

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 533
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 346
342
DREAMWEAVER API REFERENCE
Page content
Last updated 8/27/2013
Example
[...]
var DOM = dw.getDocumentDOM();
var inEls = DOM.body.getInlineElements();
var next = null, prev = null, parent = null;
var props = null;
// look through all inline elements for replaced elements.
// if no replaced elements are found, don't bother going forward.
for (var i=0; i < inEls.length; i++){
if (inEls[i].tagName == 'IMG' ||
inEls[i].tagName == 'INPUT' ||
inEls[i].tagName == 'TEXTAREA' ||
inEls[i].tagName == 'SELECT' ||
inEls[i].tagName == 'OBJECT'){
// do something
}
}
[...]
dom.getHeaderElements() elem.getHeaderElements()
Availability
Dreamweaver CS3.
Description
Scans the document (or element) for header tags (H1 to H6).
Arguments
None.
Returns
An array of element nodes.
Example
var DOM = dw.getDocumentDOM();
var headers = DOM.getHeaderElements();
for (var i=0; i < headers.length; i++){
alert(headers[i].tagName);
}
dom.getListElements() elem.getListElements()
Availability
Dreamweaver CS3.
Description
Scans the document (or element) for ordered, unordered, and definition lists.
Vedere la pagina 346
1 2 ... 342 343 344 345 346 347 348 349 350 351 352 ... 532 533

Commenti su questo manuale

Nessun commento