Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Thay đổi Properties Element Các thay đổi hành vi sở hữu cho phép bạn thay đổi thuộc tính, chẳng hạn như kiểu font, biên giới, khả năng hiển thị, cho một phần tử trên một trang Web. Các thay đổi hành vi là tài sản hữu ích cho thêm tương tác với một trang Web. | Changing Element Properties The Change Property behavior allows you to change properties such as font styles borders or visibility for an element on a Web page. The Change Property behavior is useful for adding interactivity to a Web page. For example you can have the Change Property behavior display a text description or link address when a user points to a picture on a page. Along with the Change Property behavior you can also use the Change Property Restore behavior which restores the most recent property changes made by the Change Property behavior. When you use the Change Property Restore behavior Dreamweaver displays a message dialog box acknowledging the use of the behavior. You can double-click the behavior to display a list of properties being restored. Use the Change Property Behavior Open the Web page you want to apply a behavior. Click the Window menu and then click Behaviors to display the Behaviors panel. Click the element you want to add the Change Property behavior in this example select the cell phone image . Click the Add Behavior button plus sign and then click Change Property. A dialog box appears allowing you to set the details of the action. Click the Type Of Element list arrow and then select the type you want to change in this example select DIV . Click the Element ID list arrow and then select an ID in this example select div apTextSign . The AP element to the right of the cell phone image contains text which you ll change the font size to a larger size. 368 Chapter 15 Click the Select option and select the property you want to change in this example select fontSize or click the Enter option and enter the property you want to change. Enter the new value you want in this example enter 24 . Q Click OK. To change the trigger click the event click the Event list arrow and then select the event you want. Font size changes to 24 pt. Point here to change property Chapter 15 Working with Behaviors 369 Dragging an AP Element The Drag AP Element .