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

  • 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 281
282 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 tags other attributes, use this example
as a model.
You create this extension by performing the following steps:
Creating the user interface
Writing the JavaScript code
Creating the image
Testing the Property inspector
Creating the user interface
You create an HTML file that contains a form, which appears in the Property inspector.
To create the user interface:
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:
<!-- Specify the image that will appear in the Property inspector -->
<SPAN ID="image" STYLE="position:absolute; width:23px; height:17px; ¬
z-index:16; left: 3px; top: 2px">
<IMG SRC="marquee.png" WIDTH="36" HEIGHT="36" NAME="marqueeImage">
</SPAN>
<SPAN ID="label" STYLE="position:absolute; width:23px; height:17px; ¬
Vue de la page 281
1 2 ... 277 278 279 280 281 282 283 284 285 286 287 ... 503 504

Commentaires sur ces manuels

Pas de commentaire