Set Text

Team-Fly    

Macromedia® DreamWeaver® MX Unleashed
By Matthew Pizzi, Zak Ruvalcaba
Table of Contents
Chapter 19.  Behaviors


The Set Text behavior has four subheadings. Each works in a very similar manner, but some of the options are more specific to what you're trying to set the text to. The four subheadings are

  • Set Text of Frame

  • Set Text of Layer

  • Set Text of Status Bar

  • Set Text of Text Field

In this example, you're going to set the text of the status bar. The status bar is located in the bottom-left corner of the browser window. To set the text of the status bar, follow these steps:

  1. Highlight whatever object you want to trigger this behavior.

  2. In the Behaviors panel, click the Add Behavior (+) button and choose Set Text, Set Text of Status Bar. This opens the Set Text of Status Bar dialog box, as shown in Figure 19.20.

    Figure 19.20. You can type in any message you want to appear in the status bar of the browser window.

    graphics/19fig20.jpg

  3. Type in a message; you can even call JavaScript functions within this dialog box.

  4. When you're happy, choose OK. You will return to the document.

  5. In the Behaviors panel, be sure this event will be triggered onMouseOver.

  6. Preview the document in a browser; notice when you mouse over the object you selected earlier, a message appears in the status bar, as shown in Figure 19.21.

    Figure 19.21. The status bar reveals the message you typed in step 3.

    graphics/19fig21.jpg

  7. However, when you mouse away, the message stays visible. If you want it to disappear as you mouse away from the selected object, apply another Set Text to Status Bar behavior and leave the text field blank in the dialog box. After you choose OK, be sure the event in the Behaviors panel is set onMouseOut.

The other Set Text behaviors work in a similar way, but offer the option of setting the text to a frame, a layer, or even a text field.

NOTE

Refer to the companion Web site located at http://www.dreamweavermxunleashed.com to see some QuickTime movies further illustrating the features of the Set Text behavior.



    Team-Fly    
    Top


    Macromedia Dreamweaver MX Unleashed
    Macromedia Dreamweaver MX 2004 Unleashed
    ISBN: 0672326310
    EAN: 2147483647
    Year: 2002
    Pages: 321

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net