
384
DREAMWEAVER API REFERENCE
Design
Last updated 8/27/2013
var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowDivBoxModel() == false){
currentDOM.setShowDivBoxModel(true);
}
dom.getShowDivOutlines()
Availability
Dreamweaver 8.
Description
This function gets the state of the Layout Block Outlines visual aid.
Arguments
None.
Returns
A Boolean; true if the Layout Block Outlines visual aid is on; false otherwise.
Example
The following example checks whether the Layout Block Outlines visual aid is on and, if not, turns it on:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowDivOutlines() == false){
currentDOM.setShowDivOutlines(true);
}
dom.removeCSSStyle()
Availability
Dreamweaver 3.
Description
Removes the CLASS or ID attribute from the specified element, or removes the SPAN tag that completely surrounds the
specified element. This function is valid only for the active document.
Arguments
elementNode, {classOrID}
• The elementNode argument is an element node in the DOM. If the elementNode argument is specified as an empty
string (" "), the function acts on the current selection.
• The classOrID argument, which is optional, is the attribute that should be removed (either "class" or "id"). If the
classOrID argument is not specified, it defaults to
"class". If no CLASS attribute is defined for the elementNode
argument, the
SPAN tag that surrounds the elementNode argument is removed.
Returns
Nothing.
Commenti su questo manuale