beautypg.com

A simple property inspector example, Create the user interface – Adobe Extending Dreamweaver CS4 User Manual

Page 222

background image

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:

3

To specify the document title and the JavaScript file that you will create, add the following after the comment:


Marquee Inspector





4

To specify what appears in the Property inspector, add the following between the opening and closing

body

tags:

This manual is related to the following products: