Results 1 to 3 of 3

Thread: Ultimate Fade In Problem 1.5

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

    Cool Ultimate Fade In Problem 1.5

    I was wanting to implement the script on 2 different places on the same page but I can't get it to work. It works fine when I call the script once wintonapshow.co.nz but when I try to get it to show in another place with different images the second lot of photos don't show and the page sometimes comes up with errors.http://www.wintonapshow.co.nz/About-The-Show.html
    If I put 2 instances of the first array of photos on the webpage it works perfectly but when I try to add the second it just comes up with no photos or anything and yet I'm sure all paths are correct.

    Thanks
    Terry
    Last edited by terryd; 06-17-2006 at 12:34 AM.

  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 page is in violation of Dynamic Drive's usage terms, which among other things, state that the script credit must appear in the source code of the HTML page(s) using the script. Please reinstate the notice first.


    To remedy the above, change this:

    Code:
    <script src="images.js" type="text/javascript"></script>
    to:

    Code:
    <script src="images.js" type="text/javascript">
    /***********************************************
    * Ultimate Fade-In Slideshow (v1.5): © Dynamic Drive (http://www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for this script and 100s more.
    ***********************************************/
    </script>
    Your problem is simple. you left out the #2 entry in the second array, change this:

    Code:
    var fadeimages2=new Array() 
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages2[0]=["images/photo1.jpg", "", ""]
    fadeimages2[1]=["images/about2.jpg", "", ""]  //<-- Where's [2]?
    fadeimages2[3]=["images/about3.jpg", "", ""] 
    fadeimages2[4]=["images/about4.jpg", "", ""] 
    fadeimages2[5]=["images/about5.jpg", "", ""]
    to:

    Code:
    var fadeimages2=new Array() 
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages2[0]=["images/photo1.jpg", "", ""]
    fadeimages2[1]=["images/about2.jpg", "", ""] 
    fadeimages2[2]=["images/about3.jpg", "", ""] 
    fadeimages2[3]=["images/about4.jpg", "", ""] 
    fadeimages2[4]=["images/about5.jpg", "", ""]
    - John
    ________________________

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

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

    Default

    Wow,

    Thanks for that John, you wouldn't believe how long I stared at that code wondering why in hell it wouldn't work!

    I'll put the credits in the proper place as well, I had left it on the external js sheet as I thought that was alright.

    Much appreciated,

    Terry

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
  •