MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Dokumentacja Strona 292

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 504
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 291
292 Floating Panels
To create the HTML file header:
1. Create a new blank document.
2. Enter the following:
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Script Editor</title>
<script language="JavaScript">
The extension defines two floating panels that display either (no script selected) if the
user has not selected a script marker or the JavaScript code that underlies a selected script
marker. The following code defines these two floating panels, or layers, called
blanklayer
and
scriptlayer:
To create the two floating panels:
1. Add the following code after the header in the HTML file:
<body>
<div id="blanklayer" style="position:absolute; width:422px; ¬
height:181px; z-index:1; left: 8px; top: 11px; ¬
visibility: hidden">
<center>
<br>
<br>
<br>
<br>
<br>
(no script selected)
</center>
</div>
<div id="scriptlayer" style="position:absolute; width:422px; ¬
height:181px; z-index:1; left: 8px; top: 11px; ¬
visibility: visible">
<form name="theForm">
<textarea name="scriptCode" cols="80" rows="20" wrap="VIRTUAL" ¬
onBlur="updateScript()"></textarea>
</form>
</div>
</body>
</html>
2.
Save the file as scriptEditor.htm in the Configuration/Floaters folder.
Przeglądanie stron 291
1 2 ... 287 288 289 290 291 292 293 294 295 296 297 ... 503 504

Komentarze do niniejszej Instrukcji

Brak uwag