MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Spécifications Page 312

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 504
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 311
1 2 ... 307 308 309 310 311 312 313 314 315 316 317 ... 503 504

Commentaires sur ces manuels

Pas de commentaire