Results 1 to 4 of 4

Thread: Carousel Slideshow help

  1. #1
    Join Date
    Feb 2006
    Location
    Michigan
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Carousel Slideshow help

    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

  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

    Not sure which Carousel you are talking about, so I picked the first one. Here is where they go:

    Code:
    	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. See this thread for the proper posting format for asking a question.
    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

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

  3. #3
    Join Date
    Feb 2006
    Location
    Michigan
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  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

    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:

    Code:
    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:

    Code:
    http://www.mydomain.com/index.html
    and the image is in:

    Code:
    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):

    Code:
    "photo3.jpg","", //this slide isn't linked
    Note: The comment isn't required.
    - 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
  •