Results 1 to 2 of 2

Thread: Ultimate Fade In Slideshow: Multiple Instances

  1. #1
    Join Date
    Mar 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade In Slideshow: Multiple Instances

    1) Script Title: Ultimate Fade In Slideshow

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

    3) Describe problem: I would like to run two different instances of this script on my website. A large slideshow on the index, and a smaller one on content pages. I am using a header.php file which is called for on every page - both script instances are called for inside my header as instructed on the script installation page.

    The problem is, my second smaller slideshow is not on my index page, so when the page loads I get the following error message;

    "Error: DIV with ID "fadeshow2" not found on page"

    And vice versa on my content pages;

    "Error: DIV with ID "fadeshow1" not found on page"

    Is there a way to stop this error message from popping up? Maybe I can define the scripts in the individual files as opposed to inside the header? How would I do this?

  2. #2
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,778
    Thanks
    2
    Thanked 413 Times in 407 Posts

    Default

    adding the red code should resolve the problem

    Code:
    function fadeSlideShow(settingarg){
    	this.setting=settingarg
    	settingarg=null
    	var setting=this.setting
        if (!document.getElementById(setting.wrapperid)){
         return;
        }
    	setting.fadeduration=setting.fadeduration? parseInt(setting.fadeduration) : 500
    ..........
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

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
  •