Adobe 38040334 API Reference - Page 317
elem.isHeaderElement, elem.isListElement
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 317 highlights
Example [...] var DOM = dw.getDocumentDOM(); var floats = issueUtils.getFloats(DOM.body); var next = null; for (var i=0; i < floats.length; i++){ next = floats[i].nextSibling; // if nextSibling of float is a text node or an inline element if (next && (next.nodeType == Node.TEXT_NODE || (next.nodeType == Node.ELEMENT_NODE && next.isInlineElement()))){ // do something } } [...] elem.isHeaderElement() Availability Dreamweaver CS3. Description Checks whether the element is one of the following tags: h1, h2, h3, h4, h5, h6. Arguments None. Returns A Boolean value indicating whether the object is a header element. Example [...] var DOM = dw.getDocumentDOM(); var floats = issueUtils.getFloats(DOM.body); var prev = null; // first float in the document isn't affected, so start // at 1. for (var i=1; i < floats.length; i++){ prev = floats[i].previousSibling; // if the element before the float is a header if (prev && prev.isHeaderElement()){ // do something } } [...] elem.isListElement() Availability Dreamweaver CS3. Description Checks whether the element is one of the following tags: ul, ol, dl. DREAMWEAVER CS3 312 API Reference