Results 1 to 6 of 6

Thread: DD Conveyor Belt Slideshow Trouble - Images not working!

  1. #1
    Join Date
    Oct 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question DD Conveyor Belt Slideshow Trouble - Images not working!

    1) Script Title: :: Conveyor Belt slideshow script

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

    3) Describe problem:

    Hello all! Well, to make a long story short, I am trying to update the old images on a conveyor belt slideshow for a friend's website in Dreamweaver. The problem is, when I try to replace the image title in the CSS/HTML, the image comes up as a broken piece of paper (indicating it did not work).

    It doesnt make sense. The image title is in the same path as the older images, and is also a JPEG file. I checked the dimensions and thought I needed to reconfigure the new picture's dimensions based on the old pictures, but that wasnt the case either.

    Am I missing something? I mean am I changing the images in the wrong place?

    Thank you

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Would need to see your code
    Corrections to my coding/thoughts welcome.

  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

    I think you don't mean the title attribute, rather the filename - the src attribute.

    If so -

    Paths and filenames may be in any combination of upper and lower case letters. And scripts that address them on a local machine usually can as well, even different combinations, and still work. However, once on the server, if the actual case of the letters used in the path and filename do not agree with those in the script code, usually this will result in a broken image.

    For example (on the server):

    some.JPG
    is not the same as (in the script code):

    Code:
    some.jpg
    Servers and local machines vary, but this is almost always true of servers and local machines as noted.

    To make it even more complicated, sometimes - depending upon what you're using to view the path and filename, it will appear to be all lower case even when it isn't. This can be true in Windows 7's Windows Explorer (the file manager thing, not the browser), and probably in many other cases. Looking at these things in a DOS window (from the command prompt) should show the true state of affairs. But, as this is so critical, any decent ftp program should also show the actual filename rather than the lower case version. But since the viewing of files in a program is often handled by the OS, this may not always be true.
    - John
    ________________________

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

  4. #4
    Join Date
    Oct 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    I think you don't mean the title attribute, rather the filename - the src attribute.

    If so -

    Paths and filenames may be in any combination of upper and lower case letters. And scripts that address them on a local machine usually can as well, even different combinations, and still work. However, once on the server, if the actual case of the letters used in the path and filename do not agree with those in the script code, usually this will result in a broken image.

    For example (on the server):



    is not the same as (in the script code):

    Code:
    some.jpg
    Servers and local machines vary, but this is almost always true of servers and local machines as noted.

    To make it even more complicated, sometimes - depending upon what you're using to view the path and filename, it will appear to be all lower case even when it isn't. This can be true in Windows 7's Windows Explorer (the file manager thing, not the browser), and probably in many other cases. Looking at these things in a DOS window (from the command prompt) should show the true state of affairs. But, as this is so critical, any decent ftp program should also show the actual filename rather than the lower case version. But since the viewing of files in a program is often handled by the OS, this may not always be true.
    I think thats it, I will go into folder options in explorer and reveal hidden folders and file extensions to see which one is JPG and which one is jpg

  5. #5
    Join Date
    Oct 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by bluewalrus View Post
    Would need to see your code
    I have 5 images on display, basically it looks like this:


    //Specify the slider's width (in pixels)
    var sliderwidth="300px"
    //Specify the slider's height
    var sliderheight="150px"
    //Specify the slider's slide speed (larger is faster 1-10)
    var slidespeed=3
    //configure background color:
    slidebgcolor="#EAEAEA"

    //Specify the slider's images
    var leftrightslide=new Array()
    var finalslide=''
    leftrightslide[0]='<a href="http://"><img src="dynamicbook1.gif" border=1></a>'
    leftrightslide[1]='<a href="http://"><img src="dynamicbook2.gif" border=1></a>'
    leftrightslide[2]='<a href="http://"><img src="dynamicbook3.gif" border=1></a>'
    leftrightslide[3]='<a href="http://"><img src="dynamicbook4.gif" border=1></a>'
    leftrightslide[4]='<a href="http://"><img src="dynamicbook5.gif" border=1></a>'

    The bolded parts are what I edit to change the image. Sometimes they appear as "image".JPG or jpg, but I never thought this made a difference. I have to look at the file extension of the image itself to see which one it is.

    Because like I said, all of the images are in the same folder, new and old

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

    Upper and lower case matter for sure on almost all servers.

    If you want more help:

    Please post a link to a 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
  •