Results 1 to 4 of 4

Thread: Fade-in image slideshow

  1. #1
    Join Date
    Jun 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Fade-in image slideshow

    Ok, I'm new at this so I new I'd have some problems.
    so here's my question: My images that I want displayed doesn't show up. Why?
    I'm just tinkering with it but I can't figure out why I can't get the images to come up. Does it have to be in a specific folder? I've tried all combinations.

    need help fast.


    here's what i have in HTML:

    var slideshow_width='140px' //SET IMAGE WIDTH
    var slideshow_height='225px' //SET IMAGE HEIGHT
    var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

    var fadeimages=new Array()
    //SET 1) IMAGE PATHS, 2) optional link, 3), optional link target:
    fadeimages[0]=["1-45.jpg", "", ""] //plain image syntax
    fadeimages[1]=["2-45.jpg", "http://www.google.com", ""] //image with link syntax
    fadeimages[2]=["3-45.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by sytech
    My images that I want displayed doesn't show up. Why? [...] Does it have to be in a specific folder?
    The URLs you use for the images will be resolved against the HTML document. In English , the address

      1-45.jpg

    points a file with that name in the same directory as the HTML file. If the images exist in a different directory, you'll either have to move the images (not necessarily a good idea) or change the URL.

    Hope that helps,
    Mike

  3. #3
    Join Date
    Jun 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking fade-in image slideshow

    Excellent! I've done it. Thank you very much.

    Now I have another question: How can I center it on my webpage? It's on the left side and I need it centered on my page.

  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

    Simplest:

    <center>
    code for 'where you want the script to appear' here
    </center>

    Better:

    In the head of the page:

    <style type="text/css">
    .centre {
    text-align:center;
    margin:0 auto;
    }
    </style>

    In the body:

    <div class="centre">
    code for 'where you want the script to appear' here
    </div>
    - 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
  •