Results 1 to 4 of 4

Thread: Ultimate Fade-in slideshow (v1.51)

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-in slideshow (v1.51)

    1) Script Title:Ultimate Fade-in slideshow (v1.51)
    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem: my pictures are in a diffrent file from the web page how do i get it to change the directory to get the images thanks

  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

    Your post is confusing. Technically speaking, images may not be in a different "file", I think you mean in a different folder (directory).

    If that's the case, you may use the absolute or relative path to the images in the array. Say your page is in the root of your domain, and that the images are in a folder off of that called images. Then you could do (for example):

    Code:
    fadeimages[0]=["images/photo1.jpg", "", ""] //plain image syntax
    A good rule of thumb is, if you were to use an image tag on your page to show that image, it would look like:

    HTML Code:
    <img src="images/photo1.jpg" alt="">
    So whatever you would need to use as the src attribute in an image tag is what you should put in your array.
    - John
    ________________________

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

  3. #3
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi thanks for the correction on the file folder thing i was up late when i typed that also i tried what you said and it didnt work heres what i put

    fadeimages[0]=["Banners and backgrounds/ad1 copy.jpg", "", ""] //plain image syntax

  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

    It is often problematical to use spaces in paths and/or filenames. However, it also often works fine, so that might not be an issue here. One tricky part about both paths and filenames on the web is that upper and lower case matter. In most local testing though, they do not.

    This script really isn't all that complicated to use, though (as with any script), there are quite a number of things that can mess it up. If you want more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - 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
  •