Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    multiple slideshows on webpage, possible?

    hi,

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

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    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.
    respectively.

    Hope this is clear.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by steviedoo
    <snip /> there has to be a better way.
    <snip />
    Sure. Separate content from presentation from functionality:
    www.klproductions.com/klslideshow.html
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"


  •  

    Posting Permissions

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