PDA

View Full Version : DD Conveyor Belt Slideshow Trouble - Images not working!



musicmania65
10-07-2010, 10:48 PM
1) Script Title: :: Conveyor Belt slideshow script

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex14/leftrightslide.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

bluewalrus
10-08-2010, 02:31 PM
Would need to see your code

jscheuer1
10-08-2010, 03:25 PM
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):


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.

musicmania65
10-08-2010, 05:07 PM
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):


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

musicmania65
10-08-2010, 05:11 PM
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

jscheuer1
10-08-2010, 07:07 PM
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.