Results 1 to 5 of 5

Thread: Ultimate Fade-in Slide Show: Undefined error

  1. #1
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-in Slide Show: Undefined error

    1) Script Title: Ultimate Fade-in Slide Show

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

    3) Describe problem: Fadeshow is Undefined

    I have tried different variations and gone over and over the script and studied some of the DD posts to see where I could've done something wrong. But, I just keep getting a "Fadeshow is Undefined. Source... line 385..."

    Here is part of my header code:

    var fadeimages=[]; //FIRST SLIDESHOW
    //SET IMAGE PATHS. Extend or contract array as needed

    fadeimages[0]=[
    "../../images/partners/toyota/market-toyota-tokai-corolla-nov07advert-0.jpg", "http://www.toyota.co.za/models/viewrange.aspx?id=corolla" target="_blank"]
    fadeimages[1]=[
    "../../images/partners/toyota/market-toyota-tokai-corolla-nov07advert-1.jpg", "http://www.toyota.co.za/models/viewrange.aspx?id=corolla" target="_blank"]
    fadeimages[2]=[
    "../../images/partners/toyota/market-toyota-tokai-corolla-nov07advert-2.jpg", "http://www.toyota.co.za/models/viewrange.aspx?id=corolla" target="_blank"] //image with link and target syntax

    var fadebgcolor="white"

    etc


    and my body code is:

    <script type="text/javascript">
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
    new fadeshow(fadeimages, 430, 288, 0, 3000, 1, "R")
    </script>

    My URL: http://www.bhs.org.za/bergvliet-high...yota-tokai.htm

  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

    Get rid of all:

    target=

    from the array. If you look back over the instructions, you will see that it is not called for. There could also be other problems.
    - John
    ________________________

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

  3. #3
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John thanks for your help.

    I changed the header line to read

    var fadeimages=new Array()

    and simplified the image reference in the header to read for plain image syntax. (see page source at http://www.bhs.org.za/bergvliet-high...ota-tokai1.htm)

    But, I still get this messge when I try to open the page:

    "Java Script error
    Description: 'fadeshow' is undefined.
    Source: http://www.bhs.org.za/bergvliet-high...ota-tokai1.htm
    Line: 376"

    Line 376 is: new fadeshow(fadeimages, 430, 288, 0, 3000, 1, "R")

    I can't see where my mistake is, can you?

    James

  4. #4
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    After all that I pasted over the header code and now it works!

    Thank you for being helpful and firm. It made me come up with the solution and I feel great!

  5. #5
    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

    It's working now, no error. Clear your browser's cache.
    - 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
  •