Adobe Extending Dreamweaver CS4 Instrukcja Użytkownika Strona 295

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 387
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 294
289
EXTENDING DREAMWEAVER CS4
Server behaviors
Another approach is to remove the entire tag; typing <delete deleteType="tagOnly"/> deletes the attribute. The
resulting text is Link Text.
Share-in-memory JavaScript files
If several HTML files reference a particular JavaScript file, Dreamweaver loads the JavaScript into a central location
where the HTML files can share the same JavaScript source. These files contain the following line:
//SHARE-IN-MEMORY=true
If a JavaScript file has the SHARE-IN-MEMORY directive and an HTML file references it (by using the SCRIPT tag with
the
SRC attribute), Dreamweaver loads the JavaScript into a memory location where the code is implicitly included in
all HTML files thereafter.
Note: Because JavaScript files that are loaded into this central location share memory, the files cannot duplicate any
declarations. If a share-in-memory file defines a variable or function and any other JavaScript file defines the same
variable or function, a name conflict occurs. When writing new JavaScript files, be aware of these files and their naming
conventions.
Przeglądanie stron 294
1 2 ... 290 291 292 293 294 295 296 297 298 299 300 ... 386 387

Komentarze do niniejszej Instrukcji

Brak uwag