PDA

View Full Version : Carousel Slideshow help



kidcarr51
02-21-2006, 09:50 PM
:mad: Carousel Slideshow help

--------------------------------------------------------------------------------

I cannot figure how to place my pictures inside if the carousel??? Where in the scripts do I place my photos? Do I have to resize them? Also how many photos can I display?

Thank you

Brian Carr

jscheuer1
02-21-2006, 11:36 PM
Not sure which Carousel you are talking about, so I picked the first one. Here is where they go:


Car_Image_Sources=new Array(
"photo1.jpg","http://www.dynamicdrive.com",
"photo2.jpg","http://www.javascriptkit.com",
"photo3.jpg","", //this slide isn't linked
"photo4.jpg","http://www.codingforums.com" // NOTE No comma after last line
);

For future:
Warning: Please include a link to the DD script in question in your post.
PLEASE: Include the URL to your problematic webpage that you want help with.

kidcarr51
02-22-2006, 02:12 AM
Thanks Mad Professor.

I am getting close to understanding how to get the images into the carousel. So how about the source where the pictures are stored in the folder for the ftp file. Is that where i change new array to my folder name of pictures??? Als on the "http://www.dynamicdrive.com", link after photo 1, can i just delete that and have no link???

Thanks

Kidcarr51

jscheuer1
02-22-2006, 07:00 AM
A good rule of thumb is, if you can type the address or path into the address bar of your browser and have the image you want appear in the browser, that is the address you should use in the script. Doing that will usually result in absolute paths to the images like:


http://www.mydomain.com/images/photo1.jpg

Relative paths may also be used and are generally better if you understand their use. Relative basically means in relation to the page that is using the images. So if your page is in one folder and the images are in that same folder, all you need is the image name:

photo1.jpg

If the image is in a folder called images just off of the folder that the page is in like from the first example, if your page is:


http://www.mydomain.com/index.html

and the image is in:


http://www.mydomain.com/images/photo1.jpg

you can use this relative path:

images/photo1.jpg

OK, about the links. If you do not want a link, you still need to have the empty quotes in the array, or else the script will lose count of the order of things, as it has in the demo (empty link field red, comment green):


"photo3.jpg","", //this slide isn't linked

Note: The comment isn't required.