Adobe 38040334 API Reference - Page 341
dom.getShowDivBackgrounds, which indicates that the element is neither
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 341 highlights
DREAMWEAVER CS3 336 API Reference Description This function gets the Element view for the currently selected element in the document. If the currently selected element is normal, the getElementView() function looks for the selected element's first ancestor that is either full or hidden. Arguments None. Returns A string that indicates the status of the selected element. Values include: • "hidden", which indicates that the element has CSS properties that may cause content to be partially or completely hidden in Design view. Supported CSS properties include: • overflow: hidden, scroll, or auto • display: none • "full", which indicates that the element is "hidden" by default, but is currently in "full" view as set by the setElementView("full") function. • "normal", which indicates that the element is neither "hidden" nor "full". Example The following example changes the status of the selected element to "full" if it is "hidden": var currentDOM = dw.getDocumentDOM(); if (currentDOM && getElementView() == "hidden"){ currentDOM.setElementView("full"); } dom.getShowDivBackgrounds() Availability Dreamweaver 8. Description This function gets the state of the Layout Block Backgrounds visual aid. Arguments None. Returns A Boolean; true if the Layout Block Backgrounds visual aid is on; false otherwise. Example The following example checks whether the Layout Block Backgrounds visual aid is on and, if not, turns it on: var currentDOM = dw.getDocumentDOM(); if (currentDOM.getShowDivBackgrounds() == false){ currentDOM.setShowDivBackgrounds(true); }