Cursor Trail |
This script provides a "cursor trail" for IE 4+ and NN 4+ browsers. It is ignored by by non compatible browsers. The effect may be customized by changing the values of configurable variables. The trail for this page comprises five uppercase letter "O" characters. Images may be substituted as described below.
| Configurable Variables | |
|---|---|
| Variable Name | Description |
| ObLth | Number of objects to use. Must be a value greater than 0 |
| ObXOff | Horizontal offset from cursor position. |
| ObYOff | Vertical offset from cursor position |
| XDst | Horizontal spacing between objects or "X-radius" for rotating cursor |
| YDst | Vertical spacing between objects or "Y-radius" for rotating cursor |
| Opt | Selects standard or rotating trail.
0=standard; 1=rotating |
| Obval | The text character to use. |
| tsize | Initial font-size for character. |
| tszchg | Incremental font-size change between objects. |
| twgt | Font-weight of first character. |
| twgtchg | Amount of incremental change in font-weight. Weight is reduced by this value until font-weight is not more than 500. |
| tcolr | Font color(s). An Array that defines the color for each character object. May be in any valid CSS format: color name, hexadecimal or rgb(red,green,blue) format. |
| INam | Empty when using character; Prefix of image names when using images (e.g. star); Last character of actual name must be digit values 0 thru ObLth - 1. (e.g. star0, star1, star2, star3, star4) |
| ITyp | Image type, e.g. "gif", "jpg" |
| Positive values for horizontal offset and spacing move objects right, negative values move left. Positive values for vertical offset and spacing move objects down, negative values move objects up. | |
Note: You may use the JavaScript source code on your own personal web page provided that the copyright information remains in the source code.
To save the script, Select/Highlight the script text in the textarea below. From the menu bar select Edit then Copy. Using a text editor, Paste the copied script into your document and save. To use the script, Paste the script, with the variables configured to your liking, somewhere in your HTML document, preferably in the HEAD section.
| Full Screen | JavaScript Junction | Countdown | TypeIt! |
Page created and copyright © 2000 by Robert N. Bovara. All rights reserved.