[DHTML] Cross Browser Image Fader
1) CODE TITLE: Cross Browser Image Fader
2) AUTHOR NAME/NOTES: John Davenport Scheuer (jscheuer1)
3) DESCRIPTION: A very easy to use image fader. No knowledge of opacity styles or filters required. The script determines what the browser supports and writes the style on the fly. All you need to configure is an array of the image's id's and initial opacities, ex:
Code:
var faders=[];
// Preset each image's initial opacity (0 to 100):
// ex: faders[x]=['image_id', initial_opacity];
faders[0]=['mona', 50];
faders[1]=['arch', 0];
Works in all browsers that support any type of opacity style or filter.
Syntax:
Code:
fade(image_element_OR_'image_id', 'in_OR_out', target_opacity, opacity_increment, timeout_interval)
Opacity, increment, and interval are optional.
4) URL TO CODE: http://home.comcast.net/~jscheuer1/s...eset_write.htm