MOSAIC
Author: Eric Harshbarger
Go Back
Download...
The Zipfile includes Classfile
and instructions.
Download... 20.2Kb
Source Code is missing!!
This displays multiple images in a 'videowall' configuration. Spaces of blank colors may also be included.


Parameters:

The param tags are the lines of HTML which customize the applet to your needs. Following is a list of all the parameter options which are currently applicable. Be sure to use double-quotes around the parameter's value if the value contains any whitespace. Most parameters have defaults in case you choose not to specify them... but some parameters must be included.

COPYRIGHT:

This parameter MUST be included and MUST have a value of:
"Mosaic applet, Copyright 1997 Sun Microsystems, Inc., all rights reserved."

DOCUMENTATION:

This parameter MUST be included and MUST have a value of:
"Documentation found at: http://www.xm.com/cafe/"

BACKGROUND:

This parameter points to an image file which will appear in the background of the applet.

BGCOLOR:

This parameter indicates the background color of the applet.
Note that you may not use the simple color names often used by other applets ('black, 'red', etc)... you must use the RGB, comma delimited triplets.

BLANK.PERCENT:

This should be a number 0.00 - 0.99. It indicates the chance that, instead of painting one of the PICTURES, the applet will paint a solid blank space of color BGCOLOR.

COLUMNS:

An integer indicating the number of columns of pictures the applet should display. The PICTURES' width should be equal to the applet's width divided by COLUMNS. The default is 3.

FOREGROUND:

This parameter points to an image file which will appear after all other images have been painted. Obviously the FOREGROUND should have some transperancy to it, else will conceal all of the images below it.

MULTIPLE.BLANX:

An integer indicating the maximum scaling done to a blank space of color when displayed in the applet (a scale of 2 would mean the blank field takes up a 2x2 'area' of rows and columns). The default is 1... that is, no scaling. Note that a value of 2 does not guarantee every blank will be 2x2, only that it will either be 1x1 or 2x2 ('3' would mean up to 3x3).

ORDER.DISPLAY:

A value of 'forward' means that the images are starting in the first (upper-left) grid space, then proceed left to right, top to bottom. 'backward' starts in lower-right and proceeds right to left, bottom to top. The default value 'random' means the pictures/blanks pop up in a randomly picked grid cell.

ORDER.PICK:

This is the order in which the PICTURES are choosen from the image file list. 'forward' means the first PICTURE in the list is used first, then the seconds, etc... 'random' (the default) means the PICTURES are choosen from the list randomly.

PICTURES:

A pipe (|) separated list of image file names used by the applet.

ROWS:

An integer indicating the number of rows of pictures the applet should display. The PICTURES' height should be equal to the applet's height divided by ROWS. The default is 3.

SPEED:

The number of milliseconds between each new image pop-up. The default is 250.

The Mosaic applet may be used freely by anyone. Neither Sun Microsystems, Inc. nor Eric C. Harshbarger is responsible for any problems resulting from the malfunction, use, or misuse of this applet.