Follow me

If you want to see an image follows the cursor do this:
  1. Register and download the files
  2. Include 'followme.js' from the head of your page
  3. Define parameters or accept the defaults
  4. Fire
This script requires Internet Explorer 5+ or Nescape Navigator 6+! In other browsers it does nothing.

1. Register and download the files

Before downloading the program you are requested to register yourself. There is no registration fee. If you register, you are allowed to use the program as a free software, and we will inform you about future upgrades.

You can download the files either in zip or in tgz format.

2. Include followme.js from the head of your page

Insert the following line into the head of your page:

  <script src="followme.js"></script>

3. Define parameters

You can accept the defaults or assign new values to these variables:

  fmimage="followme.gif"
The image that follows the cursor.

  fmHTML=null
Use this instead of fmimage if you want something else to follow the cursor.

  fmhotx=32; fmhoty=32;"
Hotspot of the image.

  fmdistance=64
Distance from the image to the cursor.

  fmzindex=5
Define z order position of image. Drag the example image over this section to see it working. This section is on a relative positioned layer with z-index of 9.

4. Start the program

Call fmwrite() from anywhere in the body of the document.

  <script>fmwrite()</script>