Script
Script
Objects in SVG files can have associated scripts that are triggered when a specific event related to the object occurs, such as a mouse click. With the Script tab of the Interactivity window, you can easily specify scripts and events for any object in a document you plan to save to SVG format.
Script tab
The Script tab lets you specify scripts to be triggered by events that occur in relation to an object. You can specify multiple events and scripts for each object.
Double-clicking an item in the list opens the Script Editor dialog box, where you can change the event and/or the script that is triggered by it.
If a script has more than one line in it, end each line with a semicolon (;).
- Sub menu
Edit Script |
Edits the selected script in the Script Editor dialog box. |
Add Script |
Adds a new script. Select the event in the Script Editor dialog box and type the script. |
Remove Script |
Removes the selected script. |
Specify Script Files |
Specifies one or more JavaScript (*.js) files. |
- Buttons
|
Add Script |
|
Edit Script |
|
Remove Script |
|
Specify Script Files |
Scripts on a Namo WebCanvas object only work if you save the file to SVG format.