Results 1 to 5 of 5

Thread: Using Translucent slideshow 2X's on the same page

  1. #1
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you John, I check out the link.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •