MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Dokumentacja Strona 122

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 692
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 121
Chapter 11122
inspectSelection()
Description
Refreshes the contents of the text fields based on the attributes of the current selection.
Arguments
maxOrMin
The argument is either max or min, depending on whether the Property inspector is in its
expanded or contracted state.
Returns
Dreamweaver expects nothing.
Example
The following example of inspectSelection() gets the value of the CONTENT attribute and uses
it to populate a form field called
keywords:
function inspectSelection(){
var dom = dreamweaver.getDocumentDOM();
var theObj = dom.getSelectedNode();
document.forms[0].keywords.value = ¬
theObj.getAttribute("content");
}
Przeglądanie stron 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 691 692

Komentarze do niniejszej Instrukcji

Brak uwag