Results 1 to 2 of 2

Thread: Syntax explanation for Slideshow images- please!

  1. #1
    Join Date
    Aug 2009
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Syntax explanation for Slideshow images- please!

    1) Script Title: Ulitmate Fade-in Slideshow

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem: I somehow am not getting more than three images to rotate even though they're uploaded with images1-6.jpg

    If someone could explain exactly what the array part of the script should be configured I'd really appreciate it. Do I need to only have three images in a folder on the server and then put three more in a different folder or can I add as many images in a folder as long as they are all in the script?

    What I did was replace "photo1.jpg" in the script below with the URL of the image on the server. I did the same for photo2 and photo3. My questions is... can I just copy and paste the same line for photo4-6 or do I have to put them into "fadeimages2" ?
    Can someone please help a newbie. thanks.

    Code:
    var fadeimages=new Array()
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages[0]=["photo1.jpg", "", ""] //plain image syntax
    fadeimages[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
    fadeimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
     
    var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages2[0]=["photo1.jpg", "", ""] //plain image syntax
    fadeimages2[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
    fadeimages2[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax

  2. #2
    Join Date
    Aug 2004
    Posts
    9,876
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    You can definitely have more than 3 images in your slideshow. Just remember to increment the array for it (ie: fadeimages) when specifying the additional images. For example:

    Code:
    var fadeimages=new Array()
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages[0]=["photo1.jpg", "", ""] //plain image syntax
    fadeimages[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
    fadeimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
    fadeimages[3]=["photo4.jpg", "", ""] //plain image syntax
    fadeimages[4]=["photo5.jpg", "http://www.cssdrive.com", ""] //image with link syntax
    fadeimages[5]=["photo6.jpg", "", ""] //plain image syntax
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    stevea7777 (08-04-2009)

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
  •