DHTML Lab: Dynamic Headline Fader; The Complete Code 2/2

Dynamic Headline FaderSPECIAL EDITION; the director's cut 2/2

To further simplify the inclusion of the fader technique in your pages, we have collected all the non-page-specific code and created a second external file. Therefore to place the fader in a page:

declare your parameter variables in-page;parameter options have been placed in comments below. Instructions as to the type of value you should insert are in purple. Actual string values that are accepted are in orange.

load the headline arrays and fader script as two external JavaScript files (news.js and fader.js)

All the code is necessary for the cross-browser backward-compatible version. For easier perusal, the parts of the code that apply only to Navigator 4 are in blue. Explorer 4-specific lines are in green.