Results 1 to 3 of 3

Thread: Ultimate Fade-in slideshow: showing up on each page

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

    Default Ultimate Fade-in slideshow: showing up on each page

    1) Script Title: Ultimate Fade-in slideshow (v2.1)

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

    3) Describe problem:

    I'm working on an .aspx website that uses a master page for the "head" where one typically puts scripts, etc. that the other pages of the site can draw on. I wanted the Ultimate Fade-in slideshow 2.1 for the Products page, and it works beautifully there; however, my problem is that when clicking on every other page now, the message "Error: DIV with ID 'fadeshow1' not found on page" is coming up because the other pages don't have the <div id="fadeshow1></div>

    I would really love to use this script. Is there any fix I can put either in the script or on each of the other pages that will prevent the error message from coming up and allow me to use the slideshow on the 1 page where I need it?

    Thanks much. Love the scripts here.

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

    Thumbs up Okay, I found the fix..

    The fix was made by editing the fadeslideshow.js file to remove the following:

    if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
    alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
    return
    }


    The result now is that the slideshow is loading fine on the desired page without getting alerts on all of the other pages. Hope you don't mind my providing my own solution. Again, kudos to the site and the wonderful scripts you make available to the public.

    Paul

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The alert is there basically to help new comers to the script better diagnose one of the more common reasons why the slideshow doesn't appear on the page. But in your case yes it makes sense to remove it.
    DD Admin

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
  •