Skip navigation
ProjectJer
Currently Being Moderated

Dreamweaver Spry Image Slideshow - Possible to just use 2 images for the slideshow?

Oct 3, 2011 3:43 AM

Tags: #image #dreamweaver #images #spry #slideshow #2

Hi everyone,

 

I am in midst of doing a website and have used the Image Slideshow from the Widget Browser as a component of my website. During the development of my site, I realised that the Image Slideshow only start to Autoplay and rotate images with 3 or more images. The slideshow just refuse to work when I have 2 images. Can someone advise me what to do when there is only 2 images? I haved tried looking through the scripts and cannot find a solution. It is giving me a big headache as I am so close to completion but got stucked with this.

 

Big thanks in advance!

 
Replies
  • Currently Being Moderated
    Nov 4, 2011 9:42 AM   in reply to ProjectJer

    I'd like to be able to use less than 3 images as well.

     

    Has anyone found a solution?

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 17, 2011 12:17 AM   in reply to ProjectJer

    HI Folks,

     

    What you need to do is look at the code that is inserted.  Each slide is a list item.  Delete that list item and it will delete the extra images. 

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 17, 2011 3:05 PM   in reply to Winginsue

    Thanks for trying to help, but that's not the issue we're having. The widget is coded so that it will only autoload the first image when three or more images are listed. If you only have two items in the unordered list, it will not autoload the first image.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 20, 2012 2:21 PM   in reply to ProjectJer

    try put on line 456 class SpryImageSlideShow.js

     

    if(slideIndex==0){

       self.removeClassName(self.element, self.slideShowBusy);

       self.showSlide(self.defaultSlide);

       self.isReady = true;

      }

      if(slideIndex==1){

       self.removeClassName(self.element, self.slideShowBusy);

       self.showSlide(self.defaultSlide);

       if (self.autoPlay)

        self.play();

       self.isReady = true;

      }

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 22, 2012 11:44 AM   in reply to Renato Motta

    Thank you! Worked beautifully. Now if I can only find the solution to error 2032 in the Widget Browser!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 23, 2012 8:03 PM   in reply to ProjectJer

    sorry, in my implantation, to be better, insert a "else" before the code.

    (i'm not a java script programmer, because that this jerry-rig)

     

    like on line 456 class SpryImageSlideShow.js:

     

    else{

         if(slideIndex==0){

         self.removeClassName(self.element, self.slideShowBusy);

         self.showSlide(self.defaultSlide);

         self.isReady = true;

         }

         if(slideIndex==1){

         self.removeClassName(self.element, self.slideShowBusy);

         self.showSlide(self.defaultSlide);

         if (self.autoPlay)

         self.play();

         self.isReady = true;

         }

    }

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points