Embedding JAnimation Into A Web Page


Embedding JAnimation into a web page is not possible for unregistered users, since the required files are not included in the downloaded package. If you haven't already done so, please order the janimation player.

There are two things you must do in order to put a JAn in your site:

[1] Paste the special JAnimation HTML code into your page.
[2] Copy the three applet files to the same directory.


Pasting The HTML Code

The JAnimation HTML code can be obtained from the JAnimation Tool:
Open the desired SAP file, go to "FILE" menu, and click on "EXPORT HTML FRAGMENT".
You have 3 optional parameters that you can add to the JAnimation code:

URL: To which URL you want to jump when the JAn is clicked on.
pushURL: A URL to jump to automatically when the animation sequence is finished.
GIF: A GIF file to be loaded automatically when the JAn is finished.

All these parameters are optional. However, you can't generate the HTML code unless you enter a value in the "URL" field. You can enter the address of the page the JAn is on, or just delete this line from the HTML code if you don't want the JAn to lead to another URL.

Click on the GENERATE button, and the code will appear.
Click on the COPY button, and it will be copied to the clipboard.
Now, paste the code into your HTML page.

You can also change the color of the border around the JAn by adding the following line to the code:

PARAMNAME=borderColor VALUE="Hex value of the border color" ("FFFFFF", for example).


Copying The Applet Files

The JAnimation package includes three Java files, found in the \Applet subdirectory in the JAnimation Tool's directory on your drive:

JAnimation.class - The Java class.
JAnimation.cab - Compressed class for MSIE.
JAnimation.zip - Compressed class for Netscape.

You should copy these files to the directory in which your HTML page with the JAnimation code is located (both on your website and on your personal computer).
Also, if you are using JAnimation on multiple pages in different directories, you might consider creating a special directory for the JAnimation files (such as "\JAn"), instead of copying the applet files to several directories.
If you do create this directory, you have to add another parameter to the JAnimation HTML code. See the instructions
below for more details.


Using One Applet With Several Pages

If you have created a special directory for the JAnimation files, you need to add a "pointer" to it in the HTML code. This can be done using the CODEBASE referrer.
For example, if you put the JAnimation Java files under the directory "/JAn", Your code should look like this:

CODEBASE="http://www.mysite.com/JAn/"


Troubleshooting

I copied the HTML code to my page, but the JAn doesn't show. I'm getting the message 'Class JAnimation not found'.

There can be two reasons:
The Java files don't exist in the same directory the HTML page is in, or in the CODEBASE directory.
You should check your directories and see that the files were copied.
Since Java is a case sensitive language, you must ensure that the three files are named "JAnimation.*" with capital "J" and "A". They are sometime renamed to lowercase when uploaded to the server.

I can't find the class files of JAnimation

You have to register JAnimation to receive the player. If you are a registered user, place the files you received in the /APPLET directory.
Check the
"Registration benefits" section in the help or visit our site for details.



Main Page F.A.Q User Manual Using The Applet Version Notes Registration Benefits Contact Us Sample JAns GIF Files