JavaScript behavior operations in Dreamweaver use

Source: Internet
Author: User

This article for you to introduce the Dreamweaver of JavaScript behavior in the use of the operation, I hope to help.

A way to attach JavaScript behavior to a page

In Dreamweaver, you can attach the behavior to the entire document (that is, to the label), or to multiple other HTML elements.

1. Open the document, click on the label on the status bar in the lower-left corner of the document window, or click on the other object that you want to attach the behavior to.

2. Click on the "Window" menu, select "Behavior" command, open the behavior panel.

3. In the Behavior panel, click the Add Behavior button and select the action you want to attach to the shortcut menu.

4. When an action is selected, a related dialog box appears, showing the parameters and description of the action.

5. In the dialog box, enter a parameter for the action, and then click OK to close the dialog box.

6. The added events and their corresponding actions are displayed in the Behavior List window. If this is not the trigger event that you want, you can select another event.

7. This completes the steps to add JavaScript behavior to the selected object in the page.

Tip: You can specify more than one action for an event. Actions are performed in the order in which they are arranged in the actions column of the Behaviors panel, and, of course, you can modify this order of arrangement.

Modify or delete javascript behavior

The way to change JavaScript behavior is as follows:

1. Click on the "Window" menu, select "Behavior" command, open the behavior panel.

2. Select an object or HTML element that has JavaScript behavior attached to it. The JavaScript behavior appears in the Behavior panel.

3. Follow the steps below:

If you want to edit the parameters of the action, use the mouse to select the behavior event, double-click the behavior name or select it and then press the keyboard enter key, you can open the Behavior Parameters dialog box, modify the parameters of the dialog box, click "OK" button.

If you want to change the sequence of events, select an action and click the "Up ARROW or DOWN arrow" button.

If you want to delete the behavior, select it and click the Delete event (a) button, or press the keyboard delete key.

Third, update JavaScript behavior

1. Open the Behavior panel.

2. Select an object or HTML element that has JavaScript behavior attached to it.

3. Double-click the behavior name in the behavior panel.

4. Make the changes you want in the Behavior dialog box, and then click the OK button.

All objects attached to this behavior on this page are updated. If the behavior is also included on other pages in the site, you must update the behavior on a per-page basis.

Iv. downloading and installing third party JavaScript behavior

1. Open the Behavior panel and click the "Add Behavior" button.

2. Click the "Get more Behavior" command on the Drop-down menu to open the Exchange (extended) site.

3. Browse or search for expansion packs.

4. Download and install the required expansion packs.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.