• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Q&A

Q1:How can I apply a behavior to a layer that is hidden?
A1: You can select a hidden layer in the Layers panel. Switch to the Behaviors panel, without selecting anything else, and apply the behavior. Or you can temporarily make the layer visible, apply the behavior, and then hide the layer again.
Q2:How can I create a button that triggers a behavior?
A2: We'll cover forms and buttons in Hour 18. Basically, you place a button into the web page to trigger a behavior. You insert a button from the Forms tab of the Insert bar. If Dreamweaver asks you if you'd like to add a <form> tag, you can click Yes. The trick is to make sure the button is not a Submit or Reset button. Select the None radio button in the Property inspector and then apply a behavior to the button.
Q3:Where can I learn more about JavaScript?
A3: There are some excellent resources and tutorials on the Web where you can learn some JavaScript. You don't have to understand everything about JavaScript to use it. The short statements that you used during this hour should be easy to find in any JavaScript book or reference. Check out Appendix A, “Resources,” for links to helpful sites. You might want to start out with Sams Teach Yourself JavaScript in 24 Hours by Michael Moncur.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint