By request, I have made a version of this attention-getting applet available. The user 'shoots away' a top image to reveal a bottom image. Note that both images must be the exact same size. However, you need not use 'banner sized' images... the applet may be whatever width/height you want.
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.
While I do not require any payment for the use of these applets at The Applet Depot, if you find them to be extraordinarily useful on your own
website, I'd encourage you to make a modest donation (like, $1 or 2 per applet used) to my Paypal account (send any contributions to 'email@example.com').
Once unTARed, you should find the following classes (plus a '.jar' file if you want to use the archive= attribute in the <applet> tag):
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, http://www.ericharshbarger.org">
COPYRIGHT: This parameter must appear exactly as follows:
<param name=COPYRIGHT value="MachineGun applet, Copyright 1999, Eric Harshbarger">
BGCOLOR: This is the applet's background color and should be an RGB triplet matching the background color of the webpage housing the applet.
CROSSHAIR.COLOR: The RGB triplet indicating the color of the targeting crosshairs (that follow the mouse pointer about). The default is '128, 128, 128' (gray).
IMAGE.TOP: This is the first image that the applet shows, the one to be shot away. It should be the same pixel dimensions as IMAGE.BOTTOM, and both images should be slightly smaller than the applet area, so that they may 'shake' while being shot.
IMAGE.BOTTOM: This is the image that the applet puts under the TOP.IMAGE and the one that appears when TOP.IMAGE is shot away. It should be the same pixel dimensions as IMAGE.TOP, and both images should be slightly smaller than the applet area, so that they may 'shake' while being shot.
URL: The URL of the webpage that is spawned when the mouse clicks in the HOTSPOT area.
TARGET: The name of the browser target frame in which the URL is spawned. The default is '_self'.
BULLET.RADIUS: This is the radius (in pixels) of the bullet holes (and crosshairs) shot in the applet.
SOUND.SHOT: This is the single gunshot sound file played for each hole that is shot into the applet.
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.