Adobe 38040334 API Reference - Page 371
dom.getShowBlockBorders, A Boolean: If
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 371 highlights
DREAMWEAVER CS3 366 API Reference var currentDOM = dw.getDocumentDOM(); if (currentDOM.getShowBlockBackgrounds(false) == false){ currentDOM.setShowBlockBackgrounds(false); } dom.getShowBlockBorders() Availability Dreamweaver 8. Description This function gets the state of the visual aid that draws borders for all blocks or all divs. Arguments allblocks • The allblocks argument, which is required, is a Boolean. Set the value to true to get the state for div tags only. Set the value to false to get the state for all block elements. Returns A Boolean value; if true, borders are displayed; if false, borders are not displayed. Example The following example checks whether the block borders visual aid is on and, if not, turns it on: var currentDOM = dw.getDocumentDOM(); if (currentDOM.getShowBlockBorders(false) == false){ currentDOM.setShowBlockBorders(true); } dom.getShowBlockIDs() Availability Dreamweaver 8. Description This function gets the state of the visual aid that displays ID and class information for all blocks or divs. Arguments allblocks • The allblocks argument, which is required, is a Boolean. Set the value to true to display ID and class for div tags only. Set the value to false to display the ID and class for all block elements. Returns A Boolean: If true, IDs are displayed; if false IDs are not displayed. Example The following example checks whether the block IDs are displayed and, if not, displays them:
![](/manual_guide/products/adobe-38040334-api-reference-b593776/371.png)