-
Using Translucent slideshow 2X's on the same page
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.
-
-
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.
-
-
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.
-
-
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:
Note: Questions regarding multiple script usage are not usually replied to due to their time consuming nature. See this thread for more information, and this tutorial for one possible solution.
-
-
Thank you John, I check out the link.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks