MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Spezifikationen Seite 312

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 504
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 311
312 Behaviors
<body
onLoad="checkBrowserBrand('netscaptecontent.htm','iecontent.htm')">
</body>
</html>
Testing the behavior
Finally, you can test the behavior.
To test the behavior:
1. View the file whichbrowser.htm in your browser.
Depending on which browser you are using, either iecontent.htm or netscapecontent.htm
appears.
The Behaviors API
Two Behaviors API functions are required (applyBehavior() and behaviorFunction());
the rest are optional.
applyBehavior()
Description
This function inserts into the user’s document an event handler that calls the function that the
behaviorFunction() function inserts. The applyBehavior() function can also perform
other edits on the user’s document, but it must not delete the object to which the behavior is
being applied or the object that receives the action.
Arguments
uniqueName
The argument is a unique identifier among all instances of all behaviors in the user’s
document. Its format is
functionNameInteger, where functionName is the name of the
function that
behaviorFunction() inserts. This argument is useful if you insert a tag
into the users document and you want to assign a unique value to its
NAME attribute.
Seitenansicht 311
1 2 ... 307 308 309 310 311 312 313 314 315 316 317 ... 503 504

Kommentare zu diesen Handbüchern

Keine Kommentare