MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Spezifikationen Seite 268

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 692
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 267
Chapter 21268
4 Add the line alert(Sample.computeSum(2,2)); to the objectTag() function so that it
appears as shown in the following example:
function objectTag() {
// Return the html tag that should be inserted
alert(Sample.computeSum(2,2));
return "<HR>";
}
5
Save the file and restart Dreamweaver.
To execute the computeSum() function:
Choose Insert > Horizontal Rule.
A dialog box that contains the number 4 (the result of computing the sum of 2 plus 2) appears.
Seitenansicht 267
1 2 ... 263 264 265 266 267 268 269 270 271 272 273 ... 691 692

Kommentare zu diesen Handbüchern

Keine Kommentare