Adobe Extending Dreamweaver CS4 Manuel d'utilisateur Page 222

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 387
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 221
216
EXTENDING DREAMWEAVER CS4
Property inspectors
A simple Property inspector example
The following Property inspector inspects the marquee tag, which is available only in Microsoft Internet Explorer. The
example lets you set the value of the
direction attribute in the Property inspector. To set the value of the marquee
tag’s other attributes, use this example as a model.
To create this extension, you create the user interface, write the JavaScript code, create the image, and test.
Create the user interface
You create an HTML file that contains a form, which appears in the Property inspector.
1 Create a new blank file.
2 As the first line of the file, add the comment that identifies the Property inspector, as follows:
<!-- tag:MARQUEE,priority:9,selection:exact,vline,hline -->
3 To specify the document title and the JavaScript file that you will create, add the following after the comment:
<HTML>
<HEAD>
<TITLE>Marquee Inspector</TITLE>
<SCRIPT src="marquee.js"></SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
4 To specify what appears in the Property inspector, add the following between the opening and closing body tags:
Vue de la page 221
1 2 ... 217 218 219 220 221 222 223 224 225 226 227 ... 386 387

Commentaires sur ces manuels

Pas de commentaire