MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Especificações Página 407

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 692
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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".
Vista de página 406
1 2 ... 402 403 404 405 406 407 408 409 410 411 412 ... 691 692

Comentários a estes Manuais

Sem comentários