SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 806 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

Naturally, you must be within a frameset to use this behavior, and
the frames must be named correctly??”that is, uniquely without special characters or spaces.
To change the content of a frame dynamically, follow these steps:
1. Select the triggering object.
2. From the Behaviors panel, click the Add (+) button and choose Set Text ??? Set Text of Frame. The
Set Text of Frame dialog box opens, as shown in Figure 12-15.
TIP TIP
419
Using Behaviors 12
FIGURE 12-15
The Set Text of Frame behavior enables you to interactively update the contents of any
frame in the current frameset.
3. Choose the frame you want to alter from the Frame drop-down list.
4. Enter the code for the changing frame in the New HTML text area. Keep in mind that you??™re
changing not just a word or phrase, but all the HTML contained in the section of the
frame.
With all four Set Text behaviors, you can include JavaScript code by enclosing it in curly
braces: {...}.
5. If you want to keep the majority of the code, click the Get Current HTML button and change only
those portions necessary.
6. To maintain the frame??™s attributes, such as the background and text colors, select the
Preserve Background Color option. If this option is not selected, the frame??™s background and text
colors are replaced by the default values (a white background and black text).


Pages:
794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818