PDA

View Full Version : Displaying Text and/or Images with MouseOver Events


Desmond
10-01-2003, 04:46 PM
<HTML> <HEAD> <TITLE>AutoPlay Media Studio 5.0 Knowledge Base</TITLE> </HEAD> <BODY> <h3>Displaying Text and/or Images with MouseOver Events</h3> <b>Document ID: IR10066</b> <hr> The information in this article applies to: <ul> <li>AutoPlay Media Studio 5.0 Standard Edition</li> <li>AutoPlay Media Studio 5.0 Professional Edition</li> </ul> <hr> <h3>SUMMARY</h3> <p>This article describes how to create mouseover effects.</p> <h3>DISCUSSION</h3> <p>Most objects in AutoPlay Media Studio 5.0 have two events useful for mouseover effects: On Enter and On Leave.<br> <br> As an example, we will create a button that on mouseover will display an image, and on mouseout will hide the image:</p> <ol> <li>Create an image object.<br> <br> </li> <li>Set its default visible state to false.<br> <br> </li> <li>Create a button object.<br> <br> </li> <li>In the On Enter event of the button, enter the following script:<br> <code> Image.SetVisible("Image1", true);<br></code> <br> </li> <li>In the On Leave event of the button, enter the following script:<br> <code> Image.SetVisible("Image1", false);</code></li> </ol> <p>When the user's mouse is over the button, the image object will appear. When the user's mouse leaves the button, the Image Object will disappear.<br> <br> To make text appear on a mouseover, follow the above steps, but with a paragraph object instead of an Image Object.<br> </p> <p>KEYWORDS: AutoPlay Media Studio 5.0, Image, Text, Mouse, Over, Enter, Leave </p> <hr> <FONT SIZE=1> Last reviewed: October 1, 2003<br> Copyright © 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>