• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Behavior Modification > Adding New Scripts and Behaviors

Adding New Scripts and Behaviors

If you're a veteran JavaScripter, and you want to set up your own scripts in Dreamweaver, you're more than welcome to. You can type or paste in a script using the Insert Script object, or you can set up your own actions to use in Dreamweaver behaviors.

To type in a script:

1.
On the Insert panel group, click on the Script tab, then click on the Insert Script button (Figure 16.66). Or, from the Document window menu bar, select Insert > Script Objects > Script. The Script dialog box will appear (Figure 16.67).

Figure 16.66. To add a new script, you need to show Script Objects in the Insert panel.


Figure 16.67. You can type a little script in the Script dialog box.


2.
Type (or paste) your script in the Script dialog box, and click OK. The Script dialog box will close, and the Script icon will appear in the Document window.

3.
Select the Script marker, if it isn't already selected, and display the Properties panel, if necessary (Figure 16.68).

Figure 16.68. The Property inspector, displaying Script properties.


4.
Select the type of script (JavaScript or VBScript) from the Language drop-down menu. If your script is in another scripting language, type the language's name in the Language text box.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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