View Full Version : multiple slideshows on webpage, possible?

12-08-2004, 08:01 AM

i want to have 3 slideshows side by side on my webpage. i have three sets of different arrays. i've taken care on the body onload but all three slideshows show the same pics. any suggestions? i'm running teh same script three times. there has to be a better way.thanks.

Philip M
12-08-2004, 08:49 AM
Well, yes, if you run the same script three times you will get the same pictures three times.

You need to do two things:-

Load the scripts (which must have different names of course) thus:-

<body onload="script1(); script2(); script3()">

And secondly ensure that every function and every variable
in the three scripts have different names. The simplest way
to do this is to rename all the functions and variables
in the three scripts as varname1, varname2, varname3 etc.

Hope this is clear.

12-09-2004, 02:45 AM
<snip /> there has to be a better way.
<snip />
Sure. Separate content from presentation from functionality: