Behaviors > Using the behavior actions that come with Dreamweaver > Change Property |
Use the Change Property action to change the value of one of an object's properties (for example, the background color of a layer or the action of a form). The properties you can affect are determined by the browser; many more properties can be changed by this behavior in Internet Explorer 4.0 than in IE 3.0 or Navigator 3.0 or 4.0. For example, you can set the background color of a layer dynamically.
Note: Use this action only if you are very familiar with HTML and JavaScript.
To use the Change Property action:
1 | Select an object and open the Behaviors panel. |
2 | Click the Plus (+) button and choose Change Property from the Actionspop-up menu. |
3 | From the Type of Object pop-up menu, choose the type of object whose property you want to change. |
The Named Object pop-up menu now lists all the named objects of the type you chose. | |
4 | Choose an object from the Named Object pop-up menu. |
5 | Choose a property from the Property pop-up menu, or enter the name of the property in the text field. |
To see the properties that can be changed in each browser, choose different browsers or browser versions from the browser pop-up menu. If you are typing a property name, be sure to use the exact JavaScript name of the property (and remember that JavaScript properties are case-sensitive). | |
6 | Enter the new value for the property in the New Value field, and click OK. |
7 | Check that the default event is the one you want. (When the event occurs, the action will execute and the property will change.) |
If it isn't, choose another event from the pop-up menu. If the events you want are not listed, change the target browser in the Show Events For pop-up menu. | |