Tips & Tricks

This page consists mainly of examples, so if you have no clue how to use the basic features of Fader you better look at the tutorial before you continue. Don't expect to find all features on this page. Read the reference if you are looking for a list of all variables or a description of the value-syntax that the variables accept.

Changing the background color:

The applet's background color is read from the bgColor parameter and defaults to black. It is no longer necessary to redefine the color-tables, the applet does this automatically in v2.5. If you want to change the background color, just set the parameter bgColor to the desired color and the applet will take care of the rest.

Using a background image:

If you want to use a background image, you can set the bgImg parameter to the url of the image. Set the bgColor parameter to the predominant color in the background image. This will allow the applet to adjust the initial colortables to your choice of background. If the image is not large enough to fill the applet area, it will be repeated. You can modify the placement of the tile by using the paramters ImgXDisplace and ImgYDisplace. If you want to place the text inside a "display area" of the image which is not centered, you can adjust the placement of the text with the parameters TextXDisplace and TextYDisplace. See the reference for detailed information on all parameters.

I will add examples for background images later.

Custom color-tables:

Fader v2.5 comes with 10 predefined colortables which autoadjust to all background colors. If you want to define your own colortable, because you need to match the applet's colors to your page's theme or because you don't like the predefined colors or just because, you can of course do that:
There are two colortables for each color-index, one for fading in and one for fading out. They are defined in the data-string by setting the colorinx or coloroutx variables, where x is a number from 0 to 9.
The syntax for these variables is: color,steps,color,steps,...,steps,color. If you want your text to fade in from black to blue and stop with cyan (and the other way around for fading out), you would use:

colorin0=000000,20,0000ff,10,ffffff,10,00ffff
colorout0=00ffff,10,ffffff,10,0000ff,20,000000

You can of course redefine any other table, not just table 0.
The example above would look like this.

Load pages on mouseclick:

It is possible to make Fader act as a hyperlink. The variables for this are "link" and "target". See the reference for more information.

Non-centered text:

Fader always centers the text because this is usually what you want. In case you want left- or right-aligned text you can do this by adding spaces to the beginning or the end of your string. Make sure you use an editor which does not delete spaces before newlines when you use newlines as separators.

Transition Treasure:

The following transitions are optimized for 30 chars, but it should be fairly easy to adjust them to different line-lengths. Some transitions are looking good with other line-lengths without changing. When in doubt, experiment.

This listing is of course not complete. It is only supposed to show you what can be done.

Box of Colors:

Off Road: