Results 1 to 6 of 6

Thread: DHTML manual slideshow

  1. #1
    Join Date
    Oct 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy DHTML manual slideshow

    Can anyone tell me how to get the slideshow to work if the images are in another folder. I am a newbie to web page design and wanted to show friends and family our baby son. I thought it would be better to use a slideshow rather than have large pages with lots of pictures.

    When it looks like this it works,

    photos[0]="photo1.jpg"
    photos[1]="photo2.jpg"
    photos[2]="photo3.jpg"

    But when I try this it doesn't:

    photos[0]="/images/Cameron/photo1.jpg"
    photos[1]="/images/Cameron/photo2.jpg"
    photos[2]="/images/Cameron/photo3.jpg"

    I have all my pictures in different folders to keep them all organised.

    Any help would be great,

    Graham

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Rather than relative linking:
    /images/Cameron/photo3.jpg

    Try absolute linking:
    http://www.yoursite.com/images/Cameron/photo3.jpg

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Oct 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dhtml manual slideshow

    I've tried It. but with no success.

    www.fin19.plus.com/camerontrial2.htm

    Any other ideas?

  4. #4
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The script wants to find this file:

    http://www.fin19.plus.com/images/Cam...s%20birth2.jpg

    which doesn't exist. This is the problem.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  5. #5
    Join Date
    Oct 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've checked the image filnames and have altered them on the page. But I still don't still seem to be able to see the pictures. Any more thoughts?

    I appreciate the help

  6. #6
    Join Date
    Oct 2004
    Location
    Texas
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Some servers are more forgiving than others and you're not on one of those that forgive certain things. Like Text Case.

    What you've got in the script is correct but you have the wrong case in there so the server says those files don't exist.

    Instead of:

    //define images. You can have as many as you want:
    photos[0]="http://www.fin19.plus.com/images/Cameron/camsBirth2.jpg"
    photos[1]="http://www.fin19.plus.com/images/Cameron/camsBirth3.jpg"
    photos[2]="http://www.fin19.plus.com/images/Cameron/camsBirth4.jpg"
    photos[3]="http://www.fin19.plus.com/images/Cameron/camsBirth5.jpg"
    photos[4]="http://www.fin19.plus.com/images/Cameron/camsBirth6.jpg"
    photos[5]="http://www.fin19.plus.com/images/Cameron/camsBirth7.jpg"
    photos[6]="http://www.fin19.plus.com/images/Cameron/camsBirth8.jpg"

    Try:

    //define images. You can have as many as you want:
    photos[0]="http://www.fin19.plus.com/images/Cameron/CamsBirth2.JPG"
    photos[1]="http://www.fin19.plus.com/images/Cameron/CamsBirth3.JPG"
    photos[2]="http://www.fin19.plus.com/images/Cameron/CamsBirth4.JPG"
    photos[3]="http://www.fin19.plus.com/images/Cameron/CamsBirth5.JPG"
    photos[4]="http://www.fin19.plus.com/images/Cameron/CamsBirth6.JPG"
    photos[5]="http://www.fin19.plus.com/images/Cameron/CamsBirth7.JPG"
    photos[6]="http://www.fin19.plus.com/images/Cameron/CamsBirth8.JPG"

    They look the same, but you'll notice the caps on the C starting each photo file and that JPG is capped. That's how they pop up on a directory search of your server site so that's how they need to be written in the script.

    In your image directory you also have some photos with spaces in the names. Don't forget to put %20 in the file name instead of a space or the standard underscore.

    Hope this helps.
    Last edited by chinchilla2; 10-28-2004 at 03:26 AM. Reason: forgot a tip

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
  •