|
JavaScript Menu Selection
In compatible browsers, you can use script to programmatically select a menu item or level.First, add this script to the page containing the Elevator applet: <SCRIPT LANGUAGE="JavaScript">If you have given the applet a different name in your HTML code, change the bold-text above to the new name you chose. To use this function, just call the selectItem function above, passing it the index number of the item to select. For example, using an <A> tag to select item number 14 on the menu, you would do this: <a href="javascript:void selectItem(14)">Select 14</a> You can see this feature in use in Example #3. Note: This feature will work only in registered versions of Elevator. However it can be used for testing from your hard disk.
|