Results 1 to 4 of 4

Thread: Help with

  1. #1
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face Help with

    1) Script Title: Ultimate Fade-In Slideshow

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

    3) Describe problem: Want to reference files in a different folder

    I have the images for my home page numbered (0.JPG though 12.JPG). I want to have the script be able to look in a different folder on my site.

    Basically, I want to change these lines:
    fadeimages[0]=["0.JPG", "", ""] //plain image syntax
    fadeimages[1]=["1.JPG", "", ""] //plain image syntax

    to look for files in a different folder (/images/index_images)

    I don't know enough about DHTML...is this possible?

    Thanks in advance!

    rob

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Code:
    fadeimages[0]=["/images/index_images/0.JPG", "", ""] //plain image syntax
    fadeimages[1]=["/images/index_images/1.JPG", "", ""] //plain image syntax
    fadeimages[2]=["/images/index_images/2.JPG", "", ""] //plain image syntax
    fadeimages[3]=["/images/index_images/3.JPG", "", ""] //plain image syntax
    fadeimages[4]=["/images/index_images/4.JPG", "", ""] //plain image syntax
    fadeimages[5]=["/images/index_images/5.JPG", "", ""] //plain image syntax
    fadeimages[6]=["/images/index_images/6.JPG", "", ""] //plain image syntax
    fadeimages[7]=["/images/index_images/7.JPG", "", ""] //plain image syntax
    fadeimages[8]=["/images/index_images/8.JPG", "", ""] //plain image syntax
    fadeimages[9]=["/images/index_images/9.JPG", "", ""] //plain image syntax
    fadeimages[10]=["/images/index_images/10.JPG", "", ""] //plain image syntax
    fadeimages[11]=["/images/index_images/11.JPG", "", ""] //plain image syntax
    fadeimages[12]=["/images/index_images/12.JPG", "", ""] //plain image syntax
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default close!

    Quote Originally Posted by tech_support View Post
    Code:
    fadeimages[0]=["/images/index_images/0.JPG", "", ""] //plain image syntax
    fadeimages[1]=["/images/index_images/1.JPG", "", ""] //plain image syntax
    fadeimages[2]=["/images/index_images/2.JPG", "", ""] //plain image syntax
    That doesn't work, but dropping the first "/" does.

  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

    Just as a note, the advice given by tech_support was correct for what you stated in your first post:

    Quote Originally Posted by robert_l_ross
    look for files in a different folder (/images/index_images)
    Which means the files are in the root. But, from your response, you didn't mean in the root, but in a directory off of the current folder.
    - John
    ________________________

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

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
  •