Select the object to trigger the action.
2. From the Behaviors panel, click the Add (+) button and select Play Sound.
3. To play a sound, enter the path to the audio file in the Play Sound text box or click the Browse
button to locate the file.
4. Click OK when you??™re finished.
Popup Message
You can send a quick message to your users with the Popup Message behavior. When triggered, this action
opens a JavaScript alert box that displays your specified message. You enter your message in the Message
text box on the action??™s parameter dialog box (see Figure 12-11).
FIGURE 12-11
Send a message to your users with the Popup Message action.
To use the Popup Message action, follow these steps:
1. Select the object to trigger the action.
2. From the Behaviors panel, click the Add (+) button and select Popup Message.
3. Enter your text in the Message text box.
4. Click OK when you??™re finished.
You can include JavaScript functions or references in your text messages by surrounding the
JavaScript with curly braces. For example, you can incorporate today??™s date in a message like
this:
Welcome to our site on {new Date()}!
You could also pull data from a form into your alert-box message, as in this example:
Thanks for filling out our survey,
{document.
Pages:
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812