Results 1 to 5 of 5

Thread: Slideshow image path

  1. #1
    Join Date
    Dec 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Slideshow image path

    SCript: Ultimate Fade-in slideshow (v1.5)
    http://www.dynamicdrive.com/dynamici...nslideshow.htm

    Hello, I've been trying to implement the Ulitmate Slideshow script and I'm having trouble linking to my images.

    Can someone please point out just where I put the image path into? As I see it, it goes in this section:

    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
    But where?! Forgive my dumbness, but I can't get it! Do I also need to add the path in this section someplace?
    <script type="text/javascript">
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
    new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
    new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)

    </script>

  2. #2
    Join Date
    Mar 2006
    Location
    UK, warwickshire
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I think you must just be linking to your images wrong make sure you give the correct URL

  3. #3
    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

    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
    The red part is where you put them, and if the path is other than the same folder, that goes here too, ex:

    Code:
    fadeimages[2]=["images/photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
    or:

    Code:
    fadeimages[2]=["http://www.somedomain.com/images/photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
    This part has nothing to do with image locations:

    Code:
    <script type="text/javascript">
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
    new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
    new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)
    
    </script>
    - John
    ________________________

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

  4. #4
    Join Date
    Dec 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Excellent thanks. One more irritating question though? What do I edit to remove the links, I'd rather just have a slideshow. I removed the URL shown here at the end of the line:
    fadeimages[1]=["photo2.jpg", "http://www.cssdrive.com", ""]
    But the cursor still changes into a finger and tries to link to a folder on my drive.

  5. #5
    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

    Use:

    Code:
    fadeimages[1]=["photo2.jpg", "", ""]
    - 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
  •