PDA

View Full Version : Using Translucent slideshow 2X's on the same page



CD69
06-03-2005, 10:39 AM
I want to use the Translucent slideshow Script twice in two different location on a web page. I drop the script in for the first at the top of my page and it works great, no problems. When I try to add the second further down the page neither work.

I want to use the script in a PHP forum.

Any help would be appreciated.

jscheuer1
06-03-2005, 11:11 AM
Two scripts the same on one page share variable and function names and possibly other things, this creates conflicts. Easiest way is to put one of the scripts on a separate page and have it be viewed on the first page through an iframe.

CD69
06-03-2005, 11:53 AM
Is that my only option?

It's the same script, is there a way to identify and eliminate the conflict to simply run the script.

jscheuer1
06-03-2005, 08:07 PM
As I said before the easiest way is to use the iframe. You can do it your way. This requires renaming all duplicately named functions, variables, id's, class names, etc. (if used) in one version of the script, including their use in the html, if any. Then you will have two separate scripts. If the scripts use onload handlers, these must be then combined as explained here:

.

CD69
06-04-2005, 03:11 AM
Thank you John, I check out the link.