Img applet

This applet acts as an 'enhanced HTML <img> tag'. The user may define multiple images (with URLs and browser frame targets) from which a random image will be displayed within the applet area. An image is randomly picked each time the applet is 'started' (usually when the web page is reloaded. In addition to the randomness, this applet also prevents displayed images from beinging easily saved to disk by mouse-click (the viewer would have to use a 'screen-shot' tool to grab the image or fish around in the browser's cache).

Once unTARed, you should find the following classes (plus a '.jar' file if you want to use the archive= attribute in the <applet> tag):


The applet may be downloaded for free by clicking on the TAR-file link below (read the FAQ if you're not sure what to do with a TAR file). The FAQ also has step by step instructions on how to embed an applet into your own webpage.



Below are descriptions of all the parameters you may use to customize the applets to your webpages. Be sure to enclose any parameters that contain white space in double-quotation marks. Most parameters have default values in case you do not specify your own values, but the first two parameters (AUTHOR and COPYRIGHT) are necessary. If you are not sure how to incorporate an applet into a webpage (with its parameter names and values), looks at the source of this webpage and the applet embedded for an example, or read the FAQ page.

  • AUTHOR: This parameter must appear exactly as follows:
    <param name=AUTHOR value="Eric Harshbarger,">

  • COPYRIGHT: This parameter must appear exactly as follows:
    <param name=COPYRIGHT value="Img applet, Copyright 1999, Eric Harshbarger">

  • BGCOLOR: This parameter indicates the background color of the applet. Consult the FAQ page if you are unsure what format to use for the parameter's value.

  • IMAGE.#: This series of parameters (IMAGE.0, IMAGE.1...) defines the images from which the applet chooses its random display picture. The parameter's value may also define a URL and browser frame for hotlinking. These arguments are separated using the DELIMITER ('|' by default):
    <param name=IMAGE.0 value="path_to_image.jpg | http://url_when_clicked/page.html | target_frame">
    The target value defaults to '_self' if omitted.

  • ALIGN: How the applet should align the images (only apparent if the images are not the same width as the applet's width). Acceptable values are 'left', 'right', and 'center' (the default);

  • VALIGN: How the applet should vertically align the images (only apparent if the images are not the same height as the applet's height). Acceptable values are 'top', 'bottom', and 'center' (the default);

  • DELIMITER: The character used as a separator of arguments in the IMAGE.# parameters. The default is '|'.

    The Applet Depot and all associated applets, text, scripts, and images, Copyright © 1998-2002 by Eric Harshbarger unless otherwise noted. 'Java' is a registered trademark of Sun Microsystems Incorporated.