Adobe Extending Dreamweaver CS4 Manuale Utente Pagina 222

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 387
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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:
Vedere la pagina 221
1 2 ... 217 218 219 220 221 222 223 224 225 226 227 ... 386 387

Commenti su questo manuale

Nessun commento