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:



Related Article

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.