Adobe Extending Dreamweaver CS4 Uživatelský manuál Strana 222

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 387
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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:
Zobrazit stránku 221
1 2 ... 217 218 219 220 221 222 223 224 225 226 227 ... 386 387

Komentáře k této Příručce

Žádné komentáře