Machine Gun

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.

MachineGun1.tar

<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.