Click to See Complete Forum and Search --> : multiple instances of Dynamic Headline Fader


cdouglas
07-11-2003, 01:25 AM
hey.. i am trying to use the Dynamic Headline Fader, Version 2.0, and cant work out how to make more than one instance of it in the page with different content in them


any help is appreciated

thanks

-cdouglas

dragle
07-11-2003, 10:07 AM
Hi,

Unfortunately that's an older script that is not designed with multiple instance uses in mind. Global variables are used to control the look and feel of the fader, which is assumed to be tied to a specific in-page element called "elFader" which is referred to throughout the script.

IOW, there is no switch you can throw or simple configuration you can put in effect to allow the fader to instanly appear in two places on the page. The fader code itself would actually need to be redesigned, fairly substantially from the looks of it, to allow for multiple same-page displays.

Of course, you could always try the duplicate the script and rename everything approach, but that's WAY ugly. :) If you do try this, you will still need to call the initialization routine of the second script instance from somewhere within the first, since that initialization routine is tied directly to the onload of the page.

Cheers!

cdouglas
07-12-2003, 10:26 AM
yeh ill just have to work something out then i supose.. thanks alot for your help though, much appreciated :)