beautypg.com

Write the javascript code – Adobe Extending Dreamweaver CS4 User Manual

Page 223

background image

217

EXTENDING DREAMWEAVER CS4

Property inspectors

z-index:16; left: 3px; top: 2px">


z-index:16; left: 44px; top: 5px">Marquee



top: 3px; width: 431px; height: 32px">


Direction:


5

Save the file as marquee.htm in the Configuration/Inspectors folder.

Write the JavaScript code

You need to add JavaScript functions to make sure you can inspect the selection, to inspect the selection, and to enter
the appropriate values in the Property inspector.

1

Create a new blank file.

2

To specify that the Property inspector appears whenever the selection contains the

marquee

tag, add the following

function:

function canInspectSelection(){

return true;

}

3

To refresh the value of the

direction

attribute that appears in the text field, add the following function at the end

of the file:

This manual is related to the following products: