The ScriptWorks modules work with messages sent to them via JavaScript in response to HTML events. For example, if the mouse enters an HTML link, you can send a message to the Text module telling it to display a description:
<A HREF="home.htm" ONMOUSEOVER="document.SWText.write('Go back to the home page')" ONMOUSEOUT="document.SWText.write('')">Home</A>
All modules work in exactly this way. In the text-based modules you can also specify a color for the text and add line breaks. The text is automatically wrapped to the available space. In the image modules, you can either preload the images and refer to them by number, or pass the URL of an image to load.
Any number of HTML objects on a page can send messages to a ScriptWorks module, even a module in a different frame. You can have as many modules running as you need.
|