MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Spécifications Page 407

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 692
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 406
The Dreamweaver JavaScript API 407
Arguments
None.
Returns
The object to which the style should be applied, or NULL if the target is the current selection.
Example
Before applying a style, use dreamweaver.cssStylePalette.getSelectedTarget() to ensure
that if the user has changed the target, you have the one that is currently selected.
For example:
var currDOM = dreamweaver.getDocumentDOM();
currDOM.applyCSSStyle(dreamweaver.cssStylePalette.getSelectedTarget(), ¬
"codeRed");
dreamweaver.cssStylePalette.getStyles()
Availability
Dreamweaver 3
Description
Gets a list of all the class styles in the active document.
Arguments
None.
Returns
An array of strings that represent the names of all the class styles in the document.
Example
Assuming the CSS Styles panel setup that is shown in the following example, a call to
dreamweaver.cssStylePalette.getStyles() returns an array that contains these strings:
"BreadcrumbEnd", "change", "doctitle", "heading", and "highlight".
Vue de la page 406
1 2 ... 402 403 404 405 406 407 408 409 410 411 412 ... 691 692

Commentaires sur ces manuels

Pas de commentaire