Working With
Example

The files used in this example are available individually and are also available packaged as a single zip file (click here to get the zip file).

The example's files may be found in the "ExampleFiles" directory, which is located in the "Examples" directory. Each file begins with a prefix of "SJS08".
After you retrieve the files for this example (if necessary, unzip the zip file), place the files in a directory that contains the SJS.jar applet file.
To view the applet on an web page by itself, open the SJS08.html file in a browser.
To add the example applet to your own web page, open the SJS08.html file in an HTML editor or in a text editor, then copy the applet tag (i.e., the text that begins with <applet> and ends with </applet>), and paste the applet tag into your web page (the applet must be placed between the <body> tag and the </body> tag in your web page).
If you have registered the SuperJScroll applet, then follow the instructions in this section to remove the applet's "Demo" message.

If you are running the applet from a web server, then you can remove the applet's "Demo" message by replacing the "serialNumber" text in the "SJS" applet parameter with the serial number that you received during the registration process.

If you are running the applet from a local directory (as opposed to running the applet from a web server), then replace the "hostID" text in the "SJS4" applet parameter with the host ID that you used when you registered the applet (note that a valid serial number must also be specified for the "SJS" applet parameter).

Make sure that you place the "SJS.jar" file and all of the example's files (with the exception of the "SJS08.html" file) in the directory that contains your web page.

Note that many web servers are sensitive to the character case of file names, so make sure that the character case of the file names match the character case of the file names as specified in the applet tag and in the channel definition (i.e., "MyFile.txt" is not the same as "myfile.txt", and is not the same as "MYFILE.TXT").
To customize the applet, open the SJS08.txt channel definition file in a text editor and make the desired changes (see the documentation for information about the format of the channel definition file).
Note that if there are any anchor tags in the channel definition that link to a web page, you will need to change the tags so that they reference a valid web page (otherwise, when you click an anchor in the example you will receive a "Page not found" error in a new browser window).