Save the file as marquee.js in the Configuration/Inspectors folder.
5
Creating the image
You can optionally create the image that appears in the Property inspector.
To create the image:
Create an image that is 36 pixels wide and 36 pixels high.
1
2
Save the image as marquee.gif in Configuration/Inspectors.
In general, you can save images for Property inspectors in any format that Dreamweaver supports.
Testing the Property inspector
Finally, you can test the Property inspector.
To test the Property inspector:
Restart Dreamweaver.
1
2
Create a new HTML page, or open an existing HTML page.
Add the following in the body section of the page:
3
<MARQUEE></MARQUEE>
Highlight the text you just added.
4
The Property inspector you created for the
5
Enter a value for the direction attribute in the Property inspector.
The tag on your page changes to include the direction attribute and the value you entered in the Property inspector.
The Property inspector API functions
Two of the Property inspector API functions (
canInspectSelection()
Description
Determines whether the Property inspector is appropriate for the current selection.
Arguments
None.
Note: Use
dom.getSelectedNode()
dom.getSelectedNode()
Returns
Dreamweaver expects a Boolean value:
marquee
canInspectSelection()
to get the current selection as a JavaScript object (for more information about
, see the Dreamweaver API Reference).
if the inspector can inspect the current selection;
true
tag appears.
and
inspectSelection()
DREAMWEAVER CS3
Extending Dreamweaver
) are required.
otherwise.
false
215