Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Smile can't add 5th image to slideshow

    Hello everyone,

    I'm trying to add a 5th image to this pre-fabricated script:

    http://www.javascriptkit.com/script/...tionshow.shtml

    I added another line similar to ["autumn.jpg", "", "", "Ah the cool breeze of autumn."]

    for my 5th image but the slideshow doesn't load at all. Once I delete the added line, it loads properly with no problems.

    I'm guessing there's a stipulation somewhere in the .js file but I can't seem to find what's preventing it from loading 5 images.

    Please help. Thank you very much.

  • #2
    New Coder Schrene's Avatar
    Join Date
    Jan 2011
    Location
    Earth
    Posts
    61
    Thanks
    12
    Thanked 1 Time in 1 Post
    Without actually seeing your code it is hard to say for sure...
    But it's my guess that you forgot to add a coma after the fourth line...
    Like this....
    Code:
    var flashyshow=new flashyslideshow({ //create instance of slideshow
    	wrapperid: "myslideshow", //unique ID for this slideshow
    	wrapperclass: "flashclass", //desired CSS class for this slideshow
    	imagearray: [
    ["images/Test-1.jpg", "http://en.wikipedia.org/wiki/Summer", "_new", "Such a nice Summer getaway."],
    ["images/Test-2.jpg", "http://en.wikipedia.org/wiki/Winter", "", "Winter is nice, as long as there's snow right?"],
    ["images/Test-3.jpg", "", "", "Flowers spring back to life in Spring."],
    ["images/Test-4.jpg", "", "", "Ah the cool breeze of autumn."],
    ["images/Test-5.jpg", "", "", "Ah the cool breeze of ......"]
    	],

  • Users who have thanked Schrene for this post:

    ToughNut (01-12-2012)

  • #3
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hi Schrene,

    well...I feel silly...it worked! Thank you! i've been working on this site way too long!

  • #4
    New Coder Schrene's Avatar
    Join Date
    Jan 2011
    Location
    Earth
    Posts
    61
    Thanks
    12
    Thanked 1 Time in 1 Post
    No problem I have made my share of "silly" mistakes too!!LOL


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •