Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Translucent slideshow Script question

  1. #1
    Join Date
    Nov 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    1) Script Title: Translucent slideshow Script

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

    3) Describe problem: I have a question with the script that was supplied for the Translucent slideshow. My slideshow words when the images reside in the same folder as the page, how do I reference an image in a subfolder?

    1) Script Title: Translucent slideshow Script

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

    3) Describe problem: This script is not showing my jpg file. What could be wrong with my jpg file that it is not showing? I receive a red x instead of the image.

    Last edited by jscheuer1; 11-09-2007 at 03:44 PM. Reason: merge posts

  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

    Say the subfolder is named images and it is directly off of the folder with the page using this script in it (from the demo, additions red):

    Code:
    var slideshowcontent=new Array()
    //Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]
    slideshowcontent[0]=["images/photo1.jpg", "http://www.cnn.com", "_new"]
    slideshowcontent[1]=["images/photo2.jpg", "", ""]
    slideshowcontent[2]=["images/photo3.jpg", "http://www.google.com", ""]
    In short, just put the path in there as you would for the src attribute for any normal img tag on the page. The above example is of a relative path, absolute paths may also be used.
    - John
    ________________________

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

  3. #3
    Join Date
    Nov 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That is what I thought however when I put the path to that location I get the dredded red x when I preview the page. Why would that be?

  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

    The images aren't there.
    - John
    ________________________

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

  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

    In your script, make sure the path to and name of the image file is correct, including the use of upper and lower case letters.
    - John
    ________________________

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

  6. #6
    Join Date
    Nov 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    There seems to be a problem with my jpg file. That is why I am getting the red x. However, I don't know what could be wrong with the file. I can open the file within MS paint, but when I add it to a page I get the red x.

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

    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

  8. #8
    Join Date
    Nov 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It does not seem to be the code but the jpg file. I have put 3 images in my slide show, 1 of the 3 images appear correctly, but the first two do not.

    http://65.109.28.235/slide.htm

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

    This one:

    Code:
    http://65.109.28.235/images/WelcomePageSlide/FGZ171.jpg
    is a 404 file not found. It isn't on the server in that exact location with that exact name. Remember, upper and lower case matter on the web.

    This one:

    Code:
    http://65.109.28.235/images/HC60AC.jpg
    is there, has some kind of 'error' in its code under FF and IE, but displays OK in Opera. I'll see if I can make a 'good' copy of it for you.

    This one:

    Code:
    http://65.109.28.235/images/HuebschLogo.bmp
    is there, and is fine in Opera, IE, and FF.
    - John
    ________________________

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

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

    Here's a good (web optimized) copy of the picture:

    http://home.comcast.net/~jscheuer1/side/HC60AC_o.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
  •