Dreamweaver Pop-up information behavior

Source: Internet
Author: User

First, Dreamweaver CS5 pop-up information behavior

1. Select a page element or object.

2. Open the Behavior panel.

3. Click the "Add behavior (+)" button, in the Pop-up drop-down menu, select "pop-up message" command. As shown in the following illustration:

4. Open the Pop-up message dialog box, as shown in the following illustration:

Message: Enter the message you want to display.

Tip: You can also enter any JavaScript function, property, variable, or expression in the message box. If you enter a JavaScript expression, enclose it in braces ({}). If you want to display curly braces, precede the backslash escape characters ({and}).

(1) Use JavaScript expression example one:

The URL address for this page is: {window.location}

Enter the code into the message text box.

(2) Use JavaScript expression example two:

Today is: {New Date ()}

Enter the code into the message text box.

5. Click "OK" button.

6. See if the attached event is a required event. If it is not the event you want, you can change the event.

7. See if the behavior parameters are appropriate. You can also modify the behavior parameters if they are not appropriate.

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.