Adobe Dreamweaver API Reference CS5 Manuel d'utilisateur Page 389

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 533
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 388
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.
Vue de la page 388
1 2 ... 384 385 386 387 388 389 390 391 392 393 394 ... 532 533

Commentaires sur ces manuels

Pas de commentaire