Adobe Extending Dreamweaver CS4 Instrukcja Użytkownika Strona 130

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 387
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 129
124
EXTENDING DREAMWEAVER CS4
Insert bar objects
Returns
Dreamweaver expects a string of the form "widthInPixels,heightInPixels".
The returned dimensions are smaller than the size of the entire dialog box because they do not include the area for the
OK and Cancel buttons. If the returned dimensions do not accommodate all options, scroll bars appear.
Example
The following example of the windowDimensions() function sets the dimensions of the Parameters dialog box to 648
x 520 pixels for Windows and 660 x 580 pixels for the Macintosh:
function windowDimensions(platform){
var retval = ""
if (platform = = "windows"){
retval = "648, 520";
}else{
retval = "660, 580";
}
return retval;
}
Przeglądanie stron 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 386 387

Komentarze do niniejszej Instrukcji

Brak uwag