SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1903 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

As with many aspects of building behaviors, one of the best ways to construct your
inspectBehavior() function is by examining the code of working examples provided in the Adobe-built
behaviors, as well as examples contributed by other developers.
Step 6: Test the behavior
Testing and debugging is the final, necessary phase of building an action. To test your behavior, follow these
steps:
1. Quit and restart Dreamweaver.
2. Insert an image or a link in a blank Web page.
3. Select the element to use as your trigger.
4. Open the Behaviors panel.
5. Select the Add Action (+) button, and choose your desired behavior.
6. Fill out the parameters form as required. Your action??™s name appears in the Actions column, as
shown with the Set Layer Z Index example in Figure 2-2.
FIGURE 2-2
Custom behaviors automatically appear in the Behaviors panel when created and installed
properly.
TIP TIP
BC 34
Creating a Behavior
7. Change the event by clicking on the currently assigned event and then selecting onClick from the
drop-down list.
8. Double-click the action to verify that your prior choices have been restored.
9. Test the output of the extension in various Web browsers.
When you first select an event to add, Dreamweaver examines all the actions in the Actions
folder.


Pages:
1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915