Dreamweaver MX 2004 Behavior Change object properties

Source: Internet
Author: User
Tags object dreamweaver
dreamweaver| objects

· changing properties

Use the Change property action to change the value of a property of an object, such as the background color of a layer or the action of a form. The properties that you can change are determined by the browser.

For example, you can set the background color of a layer dynamically. Use this action only if you are more familiar with HTML and JavaScript.

To use the change properties action, do the following:

Select an object and open the Behaviors panel and choose Change Properties from the Actions pop-up menu.

Select the type of object whose properties you want to change from the object type pop-up menu.

The Named objects pop-up menu lists all named objects of the selected type immediately.

Select an object from the Named Object pop-up menu.

Select a property from the Properties pop-up menu, or enter the name of the property in the text box.

For example: Inserts a picture in the webpage, and sets the picture the name is Image1, the final request: When the viewer clicks the picture with the mouse, the picture becomes another picture (you must prepare well beforehand!). )。 The following figure:

( large picture please enlarge and view )

Click OK to modify the properties of the diagram above. Then change the action to onclick in the behavior panel.

Save the page, F12 Preview.

The corresponding code added in the Code view, we can be familiar with:

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.