
Java mascot
If you upload this applet and prepare some images, your designed mascot will walk on your web page!
How to install and setup.
- Prepare still images
- All images must be same width and same height.
- All images must be GIF format. Background transparent is better.
- Prepare 8 moving image files and 2 stop image files and 1 clicked image file.
- 2 upper moving files must be named "imove1.gif" and "imove2.gif".
- 2 right moving files must be named "imove3.gif" and "imove4.gif".
- 2 lower moving files must be named "imove5.gif" and "imove6.gif".
- 2 left moving files must be named "imove7.gif" and "imove8.gif".
- 2 stop image files must be named "istop1.gif" and "istop2.gif".
- 1 clicked image file must be named "iclick1.gif".
- Write your home page's source (include applet tag).
- Put "mascot.class" to same directory as html file.
- Put image files to same directory as html file.
Image data of this page's mascot
imove1.gif | imove2.gif | imove3.gif | imove4.gif | imove5.gif | imove6.gif |
 |  |  |  |  |  |
imove7.gif | imove8.gif | istop1.gif | istop2.gif | iclick1.gif | |
 |  |  |  |  | |
Explanation of param tag.
- PARAM NAME=directory...directory of image files. If image files are under IMAGES directory, value must be "IMAGES/". This is optional tag. Default is same directory as applet file.
- PARAM NAME=speed...speed of mascot move. Default is 4.
- PARAM NAME=nimgs...number of stop image files. It must be even number, because 1 status needs 2 image files. Default is 2.
- PARAM NAME=background_color...background color value. It is hex value of six
characters and it's format is similler to <BODY BGCOLOR=>tag. You can get color value using Color picker for html. Default is light gray.
- PARAM NAME=background_image...background image file name. It must be GIF or JPEG format. This is optional tag. I suggest the size of image file must be small.
- PARAM NAME=click_sound...The sound when click mascot. Sound file must be au (sample rate:8000, resolution:16bit, channel:mono) format. This is optional tag.
- PARAM NAME=bgm...The background sound. Sound file must be au (sample rate:8000, resolution:16bit, channel:mono) format. This is optional tag.
Sample applet tag.
<APPLET code="mascot.class" width=450 height=120>
<PARAM NAME=speed VALUE="4">
<PARAM NAME=nimgs VALUE="2">
<PARAM NAME=background_image VALUE="bkground.gif">
<PARAM NAME=click_sound VALUE="click_sound.au">
<PARAM NAME=bgm VALUE="bgm.au">
</APPLET>
Another information
- If you have some troubles about Java mascot, please see source.
- When this applet works on your local disk, it loads images very slowly. When this applet works under httpd, it loads images fast.
here.