Results 1 to 3 of 3

Thread: Many Swiss Army slideshows on one website

  1. #1
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Many Swiss Army slideshows on one website

    1) Script Title: Swiss Army Slideshow

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

    3) Describe problem: I've got the slideshow working beautifully on the following page:http://www.corinnesilva.com/new/slide0.php
    So now I'm trying to work out how to configure the slideshow for another page on the same site - http://www.corinnesilva.com/new/roisin.php and all I get is a blank page.
    I kind of know there's a really simple answer to this, but I've gone round in circles on it all morning, so am asking for help.

    Thanks,

    Jude x

  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

    Your main problem is an extra [ at the beginning of each array item declaration:

    Code:
    var slides2=[]; //SECOND SLIDESHOW
    //configure the below images and descriptions to your own. 
    [slides2[0] = ["roisinban/text2.gif", "<b>Róisín Bán</b><br><br>"];
    [slides2[1] = ["roisinban/poem.gif", "<b>Róisín Bán</b><br><br>"];
    [slides2[2] = ["roisinban/roisin_ban_001.jpg", "<b>Róisín Bán</b><br><br>Emigrants return to the USA from Shannon airport after a visit home 1968"];
    [slides2[3] = ["roisinban/roisin_ban_002.jpg", "<b>Róisín Bán</b><br><br>Tallaghan Bawn Geesala, County Mayo, 1957"];
    However, once that's fixed, you will notice that your custom styles are not working. That's because even though you've named the array sildes2, it doesn't change the fact that this is the first slideshow on the page, its style hooks should end in 0, not 2, for example:

    Code:
    #controls2 {width: 505px; float: left; text-align: center; margin-top: 13px; }
    should be:

    Code:
    #controls0 {width: 505px; float: left; text-align: center; margin-top: 13px; }
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    judeabb (01-27-2009)

  4. #3
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Oh so simple! I knew it would be. I can't see the wood for the trees half the time.

    Thank you.

    Jude x

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
  •