HTML is basically a page layout / description language. The original specifications did not do much to provide interactivity with the user. Due to this, most browsers implement some form of scripting to provide functions that are lacking in HTML, and more. Tarantula has built-in support for all kinds of scripting languages, even those that are not currently existent. Commonly used scripting languages are JavaScript, VBScript etc. These scripts are included within the HTML, and are usually 'commented out'. Most scripts are activated when some 'events' take place, and these events and their actions are specified as extended attributes for the standard HTML elements. Of course, you can also include the scripts outside of the html <BODY>, in the <HEAD> section. |
Scripts can be included in Tarantula in the 'custom HTML' areas. The events and actions can be specified for an object in that object's details. Most objects in Tarantula have the capability of adding the events etc. This is done in the field for 'event code' in that objects details. Working demo : Using these scripts, it is very easy to construct 'magic images', which can change their appearance dynamically in response to user actions. The image below demonstrates this. For this demo to work, you must be viewing this document in Netscape Navigator 3.x or above, or MSIE 4.x or above, with 'JavaScript' processing enabled (it usually is). Try moving the mouse over the grid, and you will notice an image similar to the one below, indicating the position of the mouse. Also note that these images were also created using Tarantula itself. Also, even the script was generated automatically by Tarantula, using the 'Rollover Images' feature. |
![]() |
![]() |
|||||
Move the mouse and this is what you will see : |
|
|
|
|
|
|
|
|
... and here's the simple script that makes it possible : |
|
Java applets can also be embedded in the page using Tarantula. This can be done using the Custom HTML/Java area. After creating this area, double-click it to enter the editor. In this, simply click on the insert Java applet button, and you wil be asked to fill in the details of the applet. That's it, the code for the applet is automatically included in the area! |
||||||||||
|
||||||||||
[ Main ] [ Text ] [ Images ] [ Project and site management ] [ Thumbnails & galleries ] [ Forms ] [ Multimedia ] [ Multiple display resolutions ] [ Scripts and Applets ] [ Foreign language support ] [ Navigation & indexing ] |