38 users online (1 members and 37 guests)  


Page 2 of 3 First 1 2 3 Last
  Results 16 to 30 of 37

Related

  1. how to stop javascript via another javascript    Forum: Javascript Forum
    Replies: 0
  2. Replies: 8
  3. Replies: 5
  4. Image slideshow    Forum: Javascript Forum
    Replies: 3
  5. Help with Javascript    Forum: Javascript Forum
    Replies: 2
  1. #16
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: slideshow javascript need help

    Actually, the code from DD is'nt working well.

    Anyway, try this script instead:
    Code:
    <script type="text/javascript">
    
    //Preloaded slideshow script- By Jason Moon
    //For this script and more
    //Visit http://www.dynamicdrive.com
    
    // PUT THE URL'S OF YOUR IMAGES INTO THIS ARRAY...
    var Slides = new Array('http://boudhatour.wapath.com/files/kora2/step1.Jpg','http://boudhatour.wapath.com/files/kora2/step2.Jpg','http://boudhatour.wapath.com/files/kora2/step3.Jpg','http://boudhatour.wapath.com/files/kora2/step4.Jpg','http://boudhatour.wapath.com/files/kora2/step5.Jpg','http://boudhatour.wapath.com/files/kora2/step6.Jpg','http://boudhatour.wapath.com/files/kora2/step7.Jpg','http://boudhatour.wapath.com/files/kora2/step8.Jpg','http://boudhatour.wapath.com/files/kora2/step9.Jpg','http://boudhatour.wapath.com/files/kora2/step10.Jpg','http://boudhatour.wapath.com/files/kora2/step11.Jpg','http://boudhatour.wapath.com/files/kora2/step12.Jpg','http://boudhatour.wapath.com/files/kora2/step13.Jpg','http://boudhatour.wapath.com/files/kora2/step14.Jpg','http://boudhatour.wapath.com/files/kora2/step15.Jpg','http://boudhatour.wapath.com/files/kora2/step16.Jpg','http://boudhatour.wapath.com/files/kora2/step17.Jpg','http://boudhatour.wapath.com/files/kora2/step18.Jpg','http://boudhatour.wapath.com/files/kora2/step19.Jpg','http://boudhatour.wapath.com/files/kora2/step20.Jpg','http://boudhatour.wapath.com/files/kora2/step21.Jpg','http://boudhatour.wapath.com/files/kora2/step22.Jpg','http://boudhatour.wapath.com/files/kora2/step23.Jpg','http://boudhatour.wapath.com/files/kora2/step24.Jpg','http://boudhatour.wapath.com/files/kora2/step25.Jpg','http://boudhatour.wapath.com/files/kora2/step26.Jpg','http://boudhatour.wapath.com/files/kora2/step27.Jpg','http://boudhatour.wapath.com/files/kora2/step28.Jpg','http://boudhatour.wapath.com/files/kora2/step29.Jpg','http://boudhatour.wapath.com/files/kora2/step30.Jpg','http://boudhatour.wapath.com/files/kora2/step31.Jpg','http://boudhatour.wapath.com/files/kora2/step32.Jpg','http://boudhatour.wapath.com/files/kora2/step33.Jpg','http://boudhatour.wapath.com/files/kora2/step34.Jpg','http://boudhatour.wapath.com/files/kora2/step35.Jpg','http://boudhatour.wapath.com/files/kora2/step36.Jpg','http://boudhatour.wapath.com/files/kora2/step37.Jpg','http://boudhatour.wapath.com/files/kora2/step38.Jpg','http://boudhatour.wapath.com/files/kora2/step39.Jpg','http://boudhatour.wapath.com/files/kora2/step40.Jpg','http://boudhatour.wapath.com/files/kora2/step41.Jpg','http://boudhatour.wapath.com/files/kora2/step42.Jpg','http://boudhatour.wapath.com/files/kora2/step43.Jpg','http://boudhatour.wapath.com/files/kora2/step44.Jpg','http://boudhatour.wapath.com/files/kora2/step45.Jpg','http://boudhatour.wapath.com/files/kora2/step46.Jpg','http://boudhatour.wapath.com/files/kora2/step47.Jpg','http://boudhatour.wapath.com/files/kora2/step48.Jpg','http://boudhatour.wapath.com/files/kora2/step49.Jpg','http://boudhatour.wapath.com/files/kora2/step50.Jpg','http://boudhatour.wapath.com/files/kora2/step51.Jpg','http://boudhatour.wapath.com/files/kora2/step52.Jpg','http://boudhatour.wapath.com/files/kora2/step53.Jpg','http://boudhatour.wapath.com/files/kora2/step54.Jpg','http://boudhatour.wapath.com/files/kora2/step55.Jpg','http://boudhatour.wapath.com/files/kora2/step56.Jpg','http://boudhatour.wapath.com/files/kora2/step57.Jpg','http://boudhatour.wapath.com/files/kora2/step58.Jpg','http://boudhatour.wapath.com/files/kora2/step59.Jpg','http://boudhatour.wapath.com/files/kora2/step60.Jpg','http://boudhatour.wapath.com/files/kora2/step61.Jpg','http://boudhatour.wapath.com/files/kora2/step62.Jpg','http://boudhatour.wapath.com/files/kora2/step63.Jpg','http://boudhatour.wapath.com/files/kora2/step64.Jpg','http://boudhatour.wapath.com/files/kora2/step65.Jpg','http://boudhatour.wapath.com/files/kora2/step66.Jpg','http://boudhatour.wapath.com/files/kora2/step67.Jpg','http://boudhatour.wapath.com/files/kora2/step68.Jpg','http://boudhatour.wapath.com/files/kora2/step69.Jpg','http://boudhatour.wapath.com/files/kora2/step70.Jpg','http://boudhatour.wapath.com/files/kora2/step71.Jpg','http://boudhatour.wapath.com/files/kora2/step72.Jpg','http://boudhatour.wapath.com/files/kora2/step73.Jpg','http://boudhatour.wapath.com/files/kora2/step74.Jpg','http://boudhatour.wapath.com/files/kora2/step75.Jpg','http://boudhatour.wapath.com/files/kora2/step76.Jpg','http://boudhatour.wapath.com/files/kora2/step77.Jpg','http://boudhatour.wapath.com/files/kora2/step78.Jpg','http://boudhatour.wapath.com/files/kora2/step79.Jpg','http://boudhatour.wapath.com/files/kora2/step80.Jpg','http://boudhatour.wapath.com/files/kora2/step81.Jpg','http://boudhatour.wapath.com/files/kora2/step82.Jpg','http://boudhatour.wapath.com/files/kora2/step83.Jpg','http://boudhatour.wapath.com/files/kora2/step84.Jpg','http://boudhatour.wapath.com/files/kora2/step85.Jpg','http://boudhatour.wapath.com/files/Kora2/step86.Jpg'
    );
    
    // DO NOT EDIT BELOW THIS LINE!
    function CacheImage(ImageSource) { // TURNS THE STRING INTO AN IMAGE OBJECT
       var ImageObject = new Image();
       ImageObject.src = ImageSource;
       return ImageObject;
    }
    
    function ShowSlide(Direction) {
       if (SlideReady) {
          NextSlide = CurrentSlide + Direction;
          // THIS WILL DISABLE THE BUTTONS (IE-ONLY)
          document.SlideShow.Previous.disabled = (NextSlide == 0);
          document.SlideShow.Next.disabled = (NextSlide == 
    (Slides.length-1));    
     if ((NextSlide >= 0) && (NextSlide < Slides.length)) {
                document.images['Screen'].src = Slides[NextSlide].src;
                CurrentSlide = NextSlide++;
                Message = 'Picture ' + (CurrentSlide+1) + ' of ' + 
    Slides.length;
                self.defaultStatus = Message;
                if (Direction == 1) CacheNextSlide();
          }
          return true;
       }
    }
    
    function Download() {
       if (Slides[NextSlide].complete) {
          SlideReady = true;
          self.defaultStatus = Message;
       }
       else setTimeout("Download()", 100); // CHECKS DOWNLOAD STATUS EVERY 100 MS
       return true;
    }
    
    function CacheNextSlide() {
       if ((NextSlide < Slides.length) && (typeof Slides[NextSlide] == 
    'string'))
    { // ONLY CACHES THE IMAGES ONCE
          SlideReady = false;
          self.defaultStatus = 'Downloading next picture...';
          Slides[NextSlide] = CacheImage(Slides[NextSlide]);
          Download();
       }
       return true;
    }
    
    function StartSlideShow() {
       CurrentSlide = -1;
       Slides[0] = CacheImage(Slides[0]);
       SlideReady = true;
       ShowSlide(1);
    }
    </script>
    Hope that helps.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  2. #17
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    Quote Originally Posted by rangana View Post
    Actually, the code from DD is'nt working well.

    Anyway, try this script instead:
    Code:
    <script type="text/javascript">
    
    //Preloaded slideshow script- By Jason Moon
    //For this script and more
    //Visit http://www.dynamicdrive.com
    
    // PUT THE URL'S OF YOUR IMAGES INTO THIS ARRAY...
    var Slides = new Array('http://boudhatour.wapath.com/files/kora2/step1.Jpg','http://boudhatour.wapath.com/files/kora2/step2.Jpg','http://boudhatour.wapath.com/files/kora2/step3.Jpg','http://boudhatour.wapath.com/files/kora2/step4.Jpg','http://boudhatour.wapath.com/files/kora2/step5.Jpg','http://boudhatour.wapath.com/files/kora2/step6.Jpg','http://boudhatour.wapath.com/files/kora2/step7.Jpg','http://boudhatour.wapath.com/files/kora2/step8.Jpg','http://boudhatour.wapath.com/files/kora2/step9.Jpg','http://boudhatour.wapath.com/files/kora2/step10.Jpg','http://boudhatour.wapath.com/files/kora2/step11.Jpg','http://boudhatour.wapath.com/files/kora2/step12.Jpg','http://boudhatour.wapath.com/files/kora2/step13.Jpg','http://boudhatour.wapath.com/files/kora2/step14.Jpg','http://boudhatour.wapath.com/files/kora2/step15.Jpg','http://boudhatour.wapath.com/files/kora2/step16.Jpg','http://boudhatour.wapath.com/files/kora2/step17.Jpg','http://boudhatour.wapath.com/files/kora2/step18.Jpg','http://boudhatour.wapath.com/files/kora2/step19.Jpg','http://boudhatour.wapath.com/files/kora2/step20.Jpg','http://boudhatour.wapath.com/files/kora2/step21.Jpg','http://boudhatour.wapath.com/files/kora2/step22.Jpg','http://boudhatour.wapath.com/files/kora2/step23.Jpg','http://boudhatour.wapath.com/files/kora2/step24.Jpg','http://boudhatour.wapath.com/files/kora2/step25.Jpg','http://boudhatour.wapath.com/files/kora2/step26.Jpg','http://boudhatour.wapath.com/files/kora2/step27.Jpg','http://boudhatour.wapath.com/files/kora2/step28.Jpg','http://boudhatour.wapath.com/files/kora2/step29.Jpg','http://boudhatour.wapath.com/files/kora2/step30.Jpg','http://boudhatour.wapath.com/files/kora2/step31.Jpg','http://boudhatour.wapath.com/files/kora2/step32.Jpg','http://boudhatour.wapath.com/files/kora2/step33.Jpg','http://boudhatour.wapath.com/files/kora2/step34.Jpg','http://boudhatour.wapath.com/files/kora2/step35.Jpg','http://boudhatour.wapath.com/files/kora2/step36.Jpg','http://boudhatour.wapath.com/files/kora2/step37.Jpg','http://boudhatour.wapath.com/files/kora2/step38.Jpg','http://boudhatour.wapath.com/files/kora2/step39.Jpg','http://boudhatour.wapath.com/files/kora2/step40.Jpg','http://boudhatour.wapath.com/files/kora2/step41.Jpg','http://boudhatour.wapath.com/files/kora2/step42.Jpg','http://boudhatour.wapath.com/files/kora2/step43.Jpg','http://boudhatour.wapath.com/files/kora2/step44.Jpg','http://boudhatour.wapath.com/files/kora2/step45.Jpg','http://boudhatour.wapath.com/files/kora2/step46.Jpg','http://boudhatour.wapath.com/files/kora2/step47.Jpg','http://boudhatour.wapath.com/files/kora2/step48.Jpg','http://boudhatour.wapath.com/files/kora2/step49.Jpg','http://boudhatour.wapath.com/files/kora2/step50.Jpg','http://boudhatour.wapath.com/files/kora2/step51.Jpg','http://boudhatour.wapath.com/files/kora2/step52.Jpg','http://boudhatour.wapath.com/files/kora2/step53.Jpg','http://boudhatour.wapath.com/files/kora2/step54.Jpg','http://boudhatour.wapath.com/files/kora2/step55.Jpg','http://boudhatour.wapath.com/files/kora2/step56.Jpg','http://boudhatour.wapath.com/files/kora2/step57.Jpg','http://boudhatour.wapath.com/files/kora2/step58.Jpg','http://boudhatour.wapath.com/files/kora2/step59.Jpg','http://boudhatour.wapath.com/files/kora2/step60.Jpg','http://boudhatour.wapath.com/files/kora2/step61.Jpg','http://boudhatour.wapath.com/files/kora2/step62.Jpg','http://boudhatour.wapath.com/files/kora2/step63.Jpg','http://boudhatour.wapath.com/files/kora2/step64.Jpg','http://boudhatour.wapath.com/files/kora2/step65.Jpg','http://boudhatour.wapath.com/files/kora2/step66.Jpg','http://boudhatour.wapath.com/files/kora2/step67.Jpg','http://boudhatour.wapath.com/files/kora2/step68.Jpg','http://boudhatour.wapath.com/files/kora2/step69.Jpg','http://boudhatour.wapath.com/files/kora2/step70.Jpg','http://boudhatour.wapath.com/files/kora2/step71.Jpg','http://boudhatour.wapath.com/files/kora2/step72.Jpg','http://boudhatour.wapath.com/files/kora2/step73.Jpg','http://boudhatour.wapath.com/files/kora2/step74.Jpg','http://boudhatour.wapath.com/files/kora2/step75.Jpg','http://boudhatour.wapath.com/files/kora2/step76.Jpg','http://boudhatour.wapath.com/files/kora2/step77.Jpg','http://boudhatour.wapath.com/files/kora2/step78.Jpg','http://boudhatour.wapath.com/files/kora2/step79.Jpg','http://boudhatour.wapath.com/files/kora2/step80.Jpg','http://boudhatour.wapath.com/files/kora2/step81.Jpg','http://boudhatour.wapath.com/files/kora2/step82.Jpg','http://boudhatour.wapath.com/files/kora2/step83.Jpg','http://boudhatour.wapath.com/files/kora2/step84.Jpg','http://boudhatour.wapath.com/files/kora2/step85.Jpg','http://boudhatour.wapath.com/files/Kora2/step86.Jpg'
    );
    
    // DO NOT EDIT BELOW THIS LINE!
    function CacheImage(ImageSource) { // TURNS THE STRING INTO AN IMAGE OBJECT
       var ImageObject = new Image();
       ImageObject.src = ImageSource;
       return ImageObject;
    }
    
    function ShowSlide(Direction) {
       if (SlideReady) {
          NextSlide = CurrentSlide + Direction;
          // THIS WILL DISABLE THE BUTTONS (IE-ONLY)
          document.SlideShow.Previous.disabled = (NextSlide == 0);
          document.SlideShow.Next.disabled = (NextSlide == 
    (Slides.length-1));    
     if ((NextSlide >= 0) && (NextSlide < Slides.length)) {
                document.images['Screen'].src = Slides[NextSlide].src;
                CurrentSlide = NextSlide++;
                Message = 'Picture ' + (CurrentSlide+1) + ' of ' + 
    Slides.length;
                self.defaultStatus = Message;
                if (Direction == 1) CacheNextSlide();
          }
          return true;
       }
    }
    
    function Download() {
       if (Slides[NextSlide].complete) {
          SlideReady = true;
          self.defaultStatus = Message;
       }
       else setTimeout("Download()", 100); // CHECKS DOWNLOAD STATUS EVERY 100 MS
       return true;
    }
    
    function CacheNextSlide() {
       if ((NextSlide < Slides.length) && (typeof Slides[NextSlide] == 
    'string'))
    { // ONLY CACHES THE IMAGES ONCE
          SlideReady = false;
          self.defaultStatus = 'Downloading next picture...';
          Slides[NextSlide] = CacheImage(Slides[NextSlide]);
          Download();
       }
       return true;
    }
    
    function StartSlideShow() {
       CurrentSlide = -1;
       Slides[0] = CacheImage(Slides[0]);
       SlideReady = true;
       ShowSlide(1);
    }
    </script>
    Hope that helps.
    hi Rangana i have try it but always did not run the next pics http://boudhatour.wapath.com/files/kora2/slide3.b and another try http://boudhatour.wapath.com/files/kora2/Slide.b
    i dont understand where i am wrong but please again help me look the last code may be you expert eyes could see the problem thanx again and again bro
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Circombulation</title>
    <script type="text/javascript">
    //Preloaded slideshow script- By Jason Moon
    //For this script and more
    //Visit http://www.dynamicdrive.com
    
    // PUT THE URL'S OF YOUR IMAGES INTO THIS ARRAY...
    var Slides = new Array('http://boudhatour.wapath.com/files/kora2/step1.Jpg','http://boudhatour.wapath.com/files/kora2/step2.Jpg','http://boudhatour.wapath.com/files/kora2/step3.Jpg','http://boudhatour.wapath.com/files/kora2/step4.Jpg','http://boudhatour.wapath.com/files/kora2/step5.Jpg','http://boudhatour.wapath.com/files/kora2/step6.Jpg','http://boudhatour.wapath.com/files/kora2/step7.Jpg','http://boudhatour.wapath.com/files/kora2/step8.Jpg','http://boudhatour.wapath.com/files/kora2/step9.Jpg','http://boudhatour.wapath.com/files/kora2/step10.Jpg','http://boudhatour.wapath.com/files/kora2/step11.Jpg','http://boudhatour.wapath.com/files/kora2/step12.Jpg','http://boudhatour.wapath.com/files/kora2/step13.Jpg','http://boudhatour.wapath.com/files/kora2/step14.Jpg','http://boudhatour.wapath.com/files/kora2/step15.Jpg','http://boudhatour.wapath.com/files/kora2/step16.Jpg','http://boudhatour.wapath.com/files/kora2/step17.Jpg','http://boudhatour.wapath.com/files/kora2/step18.Jpg','http://boudhatour.wapath.com/files/kora2/step19.Jpg','http://boudhatour.wapath.com/files/kora2/step20.Jpg','http://boudhatour.wapath.com/files/kora2/step21.Jpg','http://boudhatour.wapath.com/files/kora2/step22.Jpg','http://boudhatour.wapath.com/files/kora2/step23.Jpg','http://boudhatour.wapath.com/files/kora2/step24.Jpg','http://boudhatour.wapath.com/files/kora2/step25.Jpg','http://boudhatour.wapath.com/files/kora2/step26.Jpg','http://boudhatour.wapath.com/files/kora2/step27.Jpg','http://boudhatour.wapath.com/files/kora2/step28.Jpg','http://boudhatour.wapath.com/files/kora2/step29.Jpg','http://boudhatour.wapath.com/files/kora2/step30.Jpg','http://boudhatour.wapath.com/files/kora2/step31.Jpg','http://boudhatour.wapath.com/files/kora2/step32.Jpg','http://boudhatour.wapath.com/files/kora2/step33.Jpg','http://boudhatour.wapath.com/files/kora2/step34.Jpg','http://boudhatour.wapath.com/files/kora2/step35.Jpg','http://boudhatour.wapath.com/files/kora2/step36.Jpg','http://boudhatour.wapath.com/files/kora2/step37.Jpg','http://boudhatour.wapath.com/files/kora2/step38.Jpg','http://boudhatour.wapath.com/files/kora2/step39.Jpg','http://boudhatour.wapath.com/files/kora2/step40.Jpg','http://boudhatour.wapath.com/files/kora2/step41.Jpg','http://boudhatour.wapath.com/files/kora2/step42.Jpg','http://boudhatour.wapath.com/files/kora2/step43.Jpg','http://boudhatour.wapath.com/files/kora2/step44.Jpg','http://boudhatour.wapath.com/files/kora2/step45.Jpg','http://boudhatour.wapath.com/files/kora2/step46.Jpg','http://boudhatour.wapath.com/files/kora2/step47.Jpg','http://boudhatour.wapath.com/files/kora2/step48.Jpg','http://boudhatour.wapath.com/files/kora2/step49.Jpg','http://boudhatour.wapath.com/files/kora2/step50.Jpg','http://boudhatour.wapath.com/files/kora2/step51.Jpg','http://boudhatour.wapath.com/files/kora2/step52.Jpg','http://boudhatour.wapath.com/files/kora2/step53.Jpg','http://boudhatour.wapath.com/files/kora2/step54.Jpg','http://boudhatour.wapath.com/files/kora2/step55.Jpg','http://boudhatour.wapath.com/files/kora2/step56.Jpg','http://boudhatour.wapath.com/files/kora2/step57.Jpg','http://boudhatour.wapath.com/files/kora2/step58.Jpg','http://boudhatour.wapath.com/files/kora2/step59.Jpg','http://boudhatour.wapath.com/files/kora2/step60.Jpg','http://boudhatour.wapath.com/files/kora2/step61.Jpg','http://boudhatour.wapath.com/files/kora2/step62.Jpg','http://boudhatour.wapath.com/files/kora2/step63.Jpg','http://boudhatour.wapath.com/files/kora2/step64.Jpg','http://boudhatour.wapath.com/files/kora2/step65.Jpg','http://boudhatour.wapath.com/files/kora2/step66.Jpg','http://boudhatour.wapath.com/files/kora2/step67.Jpg','http://boudhatour.wapath.com/files/kora2/step68.Jpg','http://boudhatour.wapath.com/files/kora2/step69.Jpg','http://boudhatour.wapath.com/files/kora2/step70.Jpg','http://boudhatour.wapath.com/files/kora2/step71.Jpg','http://boudhatour.wapath.com/files/kora2/step72.Jpg','http://boudhatour.wapath.com/files/kora2/step73.Jpg','http://boudhatour.wapath.com/files/kora2/step74.Jpg','http://boudhatour.wapath.com/files/kora2/step75.Jpg','http://boudhatour.wapath.com/files/kora2/step76.Jpg','http://boudhatour.wapath.com/files/kora2/step77.Jpg','http://boudhatour.wapath.com/files/kora2/step78.Jpg','http://boudhatour.wapath.com/files/kora2/step79.Jpg','http://boudhatour.wapath.com/files/kora2/step80.Jpg','http://boudhatour.wapath.com/files/kora2/step81.Jpg','http://boudhatour.wapath.com/files/kora2/step82.Jpg','http://boudhatour.wapath.com/files/kora2/step83.Jpg','http://boudhatour.wapath.com/files/kora2/step84.Jpg','http://boudhatour.wapath.com/files/kora2/step85.Jpg','http://boudhatour.wapath.com/files/Kora2/step86.Jpg'
    );
    
    // DO NOT EDIT BELOW THIS LINE!
    function CacheImage(ImageSource) { // TURNS THE STRING INTO AN IMAGE OBJECT
       var ImageObject = new Image();
       ImageObject.src = ImageSource;
       return ImageObject;
    }
    
    function ShowSlide(Direction) {
       if (SlideReady) {
          NextSlide = CurrentSlide + Direction;
          // THIS WILL DISABLE THE BUTTONS (IE-ONLY)
          document.SlideShow.Previous.disabled = (NextSlide == 0);
          document.SlideShow.Next.disabled = (NextSlide == 
    (Slides.length-1));    
     if ((NextSlide >= 0) && (NextSlide < Slides.length)) {
                document.images['Screen'].src = Slides[NextSlide].src;
                CurrentSlide = NextSlide++;
                Message = 'Picture ' + (CurrentSlide+1) + ' of ' + 
    Slides.length;
                self.defaultStatus = Message;
                if (Direction == 1) CacheNextSlide();
          }
          return true;
       }
    }
    
    function Download() {
       if (Slides[NextSlide].complete) {
          SlideReady = true;
          self.defaultStatus = Message;
       }
       else setTimeout("Download()", 100); // CHECKS DOWNLOAD STATUS EVERY 100 MS
       return true;
    }
    
    function CacheNextSlide() {
       if ((NextSlide < Slides.length) && (typeof Slides[NextSlide] == 
    'string'))
    { // ONLY CACHES THE IMAGES ONCE
          SlideReady = false;
          self.defaultStatus = 'Downloading next picture...';
          Slides[NextSlide] = CacheImage(Slides[NextSlide]);
          Download();
       }
       return true;
    }
    
    function StartSlideShow() {
       CurrentSlide = -1;
       Slides[0] = CacheImage(Slides[0]);
       SlideReady = true;
       ShowSlide(1);
    }
    </script>
    </head>
    <body onload="StartSlideShow()">
        <form name="SlideShow">
            <table>
                <tr>
                    <td colspan="2">
                        <img name="Screen" width="200" height="150" src="http://boudhatour.wapath.com/files/kora2/step1.Jpg"
                            alt="" /></td>
                </tr>
                <tr>
                    <td>
                        <input type="button" name="Previous" value=" << " onclick="ShowSlide(-1)" /></td>
                    <td align="right">
                        <input type="button" name="Next" value=" >> " onclick="ShowSlide(1)" /></td>
                </tr>
            </table>
        </form>
        <a href="http://click.buzzcity.com/click.php?cid=9366&amp;partnerid=12236" style="color: #1abe17">
            Catch up with frens thru email!</a><img src="http://txads.buzzcity.com/show.php?txt=1&amp;cid=9366&amp;partnerid=12236"
                alt="" /><img src="http://a.admob.com/e0?a=a1488f4d1101950&amp;s=a146fd029ce4483&amp;z=1226929641.79&amp;lt=0.435679101746&amp;rt=2"
                    alt="" width="1" height="1" /><br />
        <a href="http://click.buzzcity.com/click.php?cid=9366&amp;partnerid=12307&amp;rd=http%3A%2F%2Fxtgem.com%2Fc%2Fbuzzcallback%3Fsite%3Dbou dhatour.wapath.com">
            Catch up with frens thru email!</a><img src="http://txads.buzzcity.com/show.php?txt=1&amp;cid=9366&amp;partnerid=12307"
                alt="" />
    </body>
    Last edited by rangana; 11-19-2008 at 07:42 PM. Reason: Added [code][/code] tags

  3. #18
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: slideshow javascript need help

    This works fine:
    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0
    Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Circombulation</title>
    <script type="text/javascript">
    //Preloaded slideshow script- By Jason Moon
    //For this script and more
    //Visit http://www.dynamicdrive.com
    
    // PUT THE URL'S OF YOUR IMAGES INTO THIS ARRAY...
    var Slides = new Array('http://boudhatour.wapath.com/files/kora2/step1.Jpg','http://boudhatour.wapath.com/files/kora2/step2.Jpg','http://boudhatour.wapath.com/files/kora2/step3.Jpg','http://boudhatour.wapath.com/files/kora2/step4.Jpg','http://boudhatour.wapath.com/files/kora2/step5.Jpg','http://boudhatour.wapath.com/files/kora2/step6.Jpg','http://boudhatour.wapath.com/files/kora2/step7.Jpg','http://boudhatour.wapath.com/files/kora2/step8.Jpg','http://boudhatour.wapath.com/files/kora2/step9.Jpg','http://boudhatour.wapath.com/files/kora2/step10.Jpg','http://boudhatour.wapath.com/files/kora2/step11.Jpg','http://boudhatour.wapath.com/files/kora2/step12.Jpg','http://boudhatour.wapath.com/files/kora2/step13.Jpg','http://boudhatour.wapath.com/files/kora2/step14.Jpg','http://boudhatour.wapath.com/files/kora2/step15.Jpg','http://boudhatour.wapath.com/files/kora2/step16.Jpg','http://boudhatour.wapath.com/files/kora2/step17.Jpg','http://boudhatour.wapath.com/files/kora2/step18.Jpg','http://boudhatour.wapath.com/files/kora2/step19.Jpg','http://boudhatour.wapath.com/files/kora2/step20.Jpg','http://boudhatour.wapath.com/files/kora2/step21.Jpg','http://boudhatour.wapath.com/files/kora2/step22.Jpg','http://boudhatour.wapath.com/files/kora2/step23.Jpg','http://boudhatour.wapath.com/files/kora2/step24.Jpg','http://boudhatour.wapath.com/files/kora2/step25.Jpg','http://boudhatour.wapath.com/files/kora2/step26.Jpg','http://boudhatour.wapath.com/files/kora2/step27.Jpg','http://boudhatour.wapath.com/files/kora2/step28.Jpg','http://boudhatour.wapath.com/files/kora2/step29.Jpg','http://boudhatour.wapath.com/files/kora2/step30.Jpg','http://boudhatour.wapath.com/files/kora2/step31.Jpg','http://boudhatour.wapath.com/files/kora2/step32.Jpg','http://boudhatour.wapath.com/files/kora2/step33.Jpg','http://boudhatour.wapath.com/files/kora2/step34.Jpg','http://boudhatour.wapath.com/files/kora2/step35.Jpg','http://boudhatour.wapath.com/files/kora2/step36.Jpg','http://boudhatour.wapath.com/files/kora2/step37.Jpg','http://boudhatour.wapath.com/files/kora2/step38.Jpg','http://boudhatour.wapath.com/files/kora2/step39.Jpg','http://boudhatour.wapath.com/files/kora2/step40.Jpg','http://boudhatour.wapath.com/files/kora2/step41.Jpg','http://boudhatour.wapath.com/files/kora2/step42.Jpg','http://boudhatour.wapath.com/files/kora2/step43.Jpg','http://boudhatour.wapath.com/files/kora2/step44.Jpg','http://boudhatour.wapath.com/files/kora2/step45.Jpg','http://boudhatour.wapath.com/files/kora2/step46.Jpg','http://boudhatour.wapath.com/files/kora2/step47.Jpg','http://boudhatour.wapath.com/files/kora2/step48.Jpg','http://boudhatour.wapath.com/files/kora2/step49.Jpg','http://boudhatour.wapath.com/files/kora2/step50.Jpg','http://boudhatour.wapath.com/files/kora2/step51.Jpg','http://boudhatour.wapath.com/files/kora2/step52.Jpg','http://boudhatour.wapath.com/files/kora2/step53.Jpg','http://boudhatour.wapath.com/files/kora2/step54.Jpg','http://boudhatour.wapath.com/files/kora2/step55.Jpg','http://boudhatour.wapath.com/files/kora2/step56.Jpg','http://boudhatour.wapath.com/files/kora2/step57.Jpg','http://boudhatour.wapath.com/files/kora2/step58.Jpg','http://boudhatour.wapath.com/files/kora2/step59.Jpg','http://boudhatour.wapath.com/files/kora2/step60.Jpg','http://boudhatour.wapath.com/files/kora2/step61.Jpg','http://boudhatour.wapath.com/files/kora2/step62.Jpg','http://boudhatour.wapath.com/files/kora2/step63.Jpg','http://boudhatour.wapath.com/files/kora2/step64.Jpg','http://boudhatour.wapath.com/files/kora2/step65.Jpg','http://boudhatour.wapath.com/files/kora2/step66.Jpg','http://boudhatour.wapath.com/files/kora2/step67.Jpg','http://boudhatour.wapath.com/files/kora2/step68.Jpg','http://boudhatour.wapath.com/files/kora2/step69.Jpg','http://boudhatour.wapath.com/files/kora2/step70.Jpg','http://boudhatour.wapath.com/files/kora2/step71.Jpg','http://boudhatour.wapath.com/files/kora2/step72.Jpg','http://boudhatour.wapath.com/files/kora2/step73.Jpg','http://boudhatour.wapath.com/files/kora2/step74.Jpg','http://boudhatour.wapath.com/files/kora2/step75.Jpg','http://boudhatour.wapath.com/files/kora2/step76.Jpg','http://boudhatour.wapath.com/files/kora2/step77.Jpg','http://boudhatour.wapath.com/files/kora2/step78.Jpg','http://boudhatour.wapath.com/files/kora2/step79.Jpg','http://boudhatour.wapath.com/files/kora2/step80.Jpg','http://boudhatour.wapath.com/files/kora2/step81.Jpg','http://boudhatour.wapath.com/files/kora2/step82.Jpg','http://boudhatour.wapath.com/files/kora2/step83.Jpg','http://boudhatour.wapath.com/files/kora2/step84.Jpg','http://boudhatour.wapath.com/files/kora2/step85.Jpg','http://boudhatour.wapath.com/files/Kora2/step86.Jpg'
    );
    
    // DO NOT EDIT BELOW THIS LINE!
    function CacheImage(ImageSource) { // TURNS THE STRING INTO AN IMAGE OBJECT
    var ImageObject = new Image();
    ImageObject.src = ImageSource;
    return ImageObject;
    }
    
    function ShowSlide(Direction) {
    if (SlideReady) {
    NextSlide = CurrentSlide + Direction;
    // THIS WILL DISABLE THE BUTTONS (IE-ONLY)
    document.SlideShow.Previous.disabled = (NextSlide == 0);
    document.SlideShow.Next.disabled = (NextSlide ==
    (Slides.length-1));
    if ((NextSlide >= 0) && (NextSlide < Slides.length)) {
    document.images['Screen'].src = Slides[NextSlide].src;
    CurrentSlide = NextSlide++;
    Message = 'Picture ' + (CurrentSlide+1) + ' of ' +
    Slides.length;
    self.defaultStatus = Message;
    if (Direction == 1) CacheNextSlide();
    }
    return true;
    }
    }
    
    function Download() {
    if (Slides[NextSlide].complete) {
    SlideReady = true;
    self.defaultStatus = Message;
    }
    else setTimeout("Download()", 100); // CHECKS DOWNLOAD STATUS EVERY 100 MS
    return true;
    }
    
    function CacheNextSlide() {
    if ((NextSlide < Slides.length) && (typeof Slides[NextSlide] ==
    'string'))
    { // ONLY CACHES THE IMAGES ONCE
    SlideReady = false;
    self.defaultStatus = 'Downloading next picture...';
    Slides[NextSlide] = CacheImage(Slides[NextSlide]);
    Download();
    }
    return true;
    }
    
    function StartSlideShow() {
    CurrentSlide = -1;
    Slides[0] = CacheImage(Slides[0]);
    SlideReady = true;
    ShowSlide(1);
    }
    </script>
    </head>
    <body onload="StartSlideShow()">
    <form name="SlideShow">
    <table>
    <tr>
    <td colspan="2">
    <img name="Screen" width="200" height="150" src="http://boudhatour.wapath.com/files/kora2/step1.Jpg"
    alt="" /></td>
    </tr>
    <tr>
    <td>
    <input type="button" name="Previous" value=" << " onclick="ShowSlide(-1)" /></td>
    <td align="right">
    <input type="button" name="Next" value=" >> " onclick="ShowSlide(1)" /></td>
    </tr>
    </table>
    </form>
    <a href="http://click.buzzcity.com/click.php?cid=9366&amp;partnerid=12236" style="color: #1abe17">
    Catch up with frens thru email!</a><img src="http://txads.buzzcity.com/show.php?txt=1&amp;cid=9366&amp;partnerid=12236"
    alt="" /><img src="http://a.admob.com/e0?a=a1488f4d1101950&amp;s=a146fd029ce4483&amp;z=1226929641.79&amp;lt=0.435679101746&amp;rt=2"
    alt="" width="1" height="1" /><br />
    <a href="http://click.buzzcity.com/click.php?cid=9366&amp;partnerid=12307&amp;rd=http%3A%2F%2Fxtgem.com%2Fc%2Fbuzzcallback%3Fsite%3Dbou dhatour.wapath.com">
    Catch up with frens thru email!</a><img src="http://txads.buzzcity.com/show.php?txt=1&amp;cid=9366&amp;partnerid=12307"
    alt="" />
    </body>
    </html>
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  4. #19
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    Quote Originally Posted by rangana View Post
    This works fine:
    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0
    Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Circombulation</title>
    <script type="text/javascript">
    //Preloaded slideshow script- By Jason Moon
    //For this script and more
    //Visit http://www.dynamicdrive.com
    
    // PUT THE URL'S OF YOUR IMAGES INTO THIS ARRAY...
    var Slides = new Array('http://boudhatour.wapath.com/files/kora2/step1.Jpg','http://boudhatour.wapath.com/files/kora2/step2.Jpg','http://boudhatour.wapath.com/files/kora2/step3.Jpg','http://boudhatour.wapath.com/files/kora2/step4.Jpg','http://boudhatour.wapath.com/files/kora2/step5.Jpg','http://boudhatour.wapath.com/files/kora2/step6.Jpg','http://boudhatour.wapath.com/files/kora2/step7.Jpg','http://boudhatour.wapath.com/files/kora2/step8.Jpg','http://boudhatour.wapath.com/files/kora2/step9.Jpg','http://boudhatour.wapath.com/files/kora2/step10.Jpg','http://boudhatour.wapath.com/files/kora2/step11.Jpg','http://boudhatour.wapath.com/files/kora2/step12.Jpg','http://boudhatour.wapath.com/files/kora2/step13.Jpg','http://boudhatour.wapath.com/files/kora2/step14.Jpg','http://boudhatour.wapath.com/files/kora2/step15.Jpg','http://boudhatour.wapath.com/files/kora2/step16.Jpg','http://boudhatour.wapath.com/files/kora2/step17.Jpg','http://boudhatour.wapath.com/files/kora2/step18.Jpg','http://boudhatour.wapath.com/files/kora2/step19.Jpg','http://boudhatour.wapath.com/files/kora2/step20.Jpg','http://boudhatour.wapath.com/files/kora2/step21.Jpg','http://boudhatour.wapath.com/files/kora2/step22.Jpg','http://boudhatour.wapath.com/files/kora2/step23.Jpg','http://boudhatour.wapath.com/files/kora2/step24.Jpg','http://boudhatour.wapath.com/files/kora2/step25.Jpg','http://boudhatour.wapath.com/files/kora2/step26.Jpg','http://boudhatour.wapath.com/files/kora2/step27.Jpg','http://boudhatour.wapath.com/files/kora2/step28.Jpg','http://boudhatour.wapath.com/files/kora2/step29.Jpg','http://boudhatour.wapath.com/files/kora2/step30.Jpg','http://boudhatour.wapath.com/files/kora2/step31.Jpg','http://boudhatour.wapath.com/files/kora2/step32.Jpg','http://boudhatour.wapath.com/files/kora2/step33.Jpg','http://boudhatour.wapath.com/files/kora2/step34.Jpg','http://boudhatour.wapath.com/files/kora2/step35.Jpg','http://boudhatour.wapath.com/files/kora2/step36.Jpg','http://boudhatour.wapath.com/files/kora2/step37.Jpg','http://boudhatour.wapath.com/files/kora2/step38.Jpg','http://boudhatour.wapath.com/files/kora2/step39.Jpg','http://boudhatour.wapath.com/files/kora2/step40.Jpg','http://boudhatour.wapath.com/files/kora2/step41.Jpg','http://boudhatour.wapath.com/files/kora2/step42.Jpg','http://boudhatour.wapath.com/files/kora2/step43.Jpg','http://boudhatour.wapath.com/files/kora2/step44.Jpg','http://boudhatour.wapath.com/files/kora2/step45.Jpg','http://boudhatour.wapath.com/files/kora2/step46.Jpg','http://boudhatour.wapath.com/files/kora2/step47.Jpg','http://boudhatour.wapath.com/files/kora2/step48.Jpg','http://boudhatour.wapath.com/files/kora2/step49.Jpg','http://boudhatour.wapath.com/files/kora2/step50.Jpg','http://boudhatour.wapath.com/files/kora2/step51.Jpg','http://boudhatour.wapath.com/files/kora2/step52.Jpg','http://boudhatour.wapath.com/files/kora2/step53.Jpg','http://boudhatour.wapath.com/files/kora2/step54.Jpg','http://boudhatour.wapath.com/files/kora2/step55.Jpg','http://boudhatour.wapath.com/files/kora2/step56.Jpg','http://boudhatour.wapath.com/files/kora2/step57.Jpg','http://boudhatour.wapath.com/files/kora2/step58.Jpg','http://boudhatour.wapath.com/files/kora2/step59.Jpg','http://boudhatour.wapath.com/files/kora2/step60.Jpg','http://boudhatour.wapath.com/files/kora2/step61.Jpg','http://boudhatour.wapath.com/files/kora2/step62.Jpg','http://boudhatour.wapath.com/files/kora2/step63.Jpg','http://boudhatour.wapath.com/files/kora2/step64.Jpg','http://boudhatour.wapath.com/files/kora2/step65.Jpg','http://boudhatour.wapath.com/files/kora2/step66.Jpg','http://boudhatour.wapath.com/files/kora2/step67.Jpg','http://boudhatour.wapath.com/files/kora2/step68.Jpg','http://boudhatour.wapath.com/files/kora2/step69.Jpg','http://boudhatour.wapath.com/files/kora2/step70.Jpg','http://boudhatour.wapath.com/files/kora2/step71.Jpg','http://boudhatour.wapath.com/files/kora2/step72.Jpg','http://boudhatour.wapath.com/files/kora2/step73.Jpg','http://boudhatour.wapath.com/files/kora2/step74.Jpg','http://boudhatour.wapath.com/files/kora2/step75.Jpg','http://boudhatour.wapath.com/files/kora2/step76.Jpg','http://boudhatour.wapath.com/files/kora2/step77.Jpg','http://boudhatour.wapath.com/files/kora2/step78.Jpg','http://boudhatour.wapath.com/files/kora2/step79.Jpg','http://boudhatour.wapath.com/files/kora2/step80.Jpg','http://boudhatour.wapath.com/files/kora2/step81.Jpg','http://boudhatour.wapath.com/files/kora2/step82.Jpg','http://boudhatour.wapath.com/files/kora2/step83.Jpg','http://boudhatour.wapath.com/files/kora2/step84.Jpg','http://boudhatour.wapath.com/files/kora2/step85.Jpg','http://boudhatour.wapath.com/files/Kora2/step86.Jpg'
    );
    
    // DO NOT EDIT BELOW THIS LINE!
    function CacheImage(ImageSource) { // TURNS THE STRING INTO AN IMAGE OBJECT
    var ImageObject = new Image();
    ImageObject.src = ImageSource;
    return ImageObject;
    }
    
    function ShowSlide(Direction) {
    if (SlideReady) {
    NextSlide = CurrentSlide + Direction;
    // THIS WILL DISABLE THE BUTTONS (IE-ONLY)
    document.SlideShow.Previous.disabled = (NextSlide == 0);
    document.SlideShow.Next.disabled = (NextSlide ==
    (Slides.length-1));
    if ((NextSlide >= 0) && (NextSlide < Slides.length)) {
    document.images['Screen'].src = Slides[NextSlide].src;
    CurrentSlide = NextSlide++;
    Message = 'Picture ' + (CurrentSlide+1) + ' of ' +
    Slides.length;
    self.defaultStatus = Message;
    if (Direction == 1) CacheNextSlide();
    }
    return true;
    }
    }
    
    function Download() {
    if (Slides[NextSlide].complete) {
    SlideReady = true;
    self.defaultStatus = Message;
    }
    else setTimeout("Download()", 100); // CHECKS DOWNLOAD STATUS EVERY 100 MS
    return true;
    }
    
    function CacheNextSlide() {
    if ((NextSlide < Slides.length) && (typeof Slides[NextSlide] ==
    'string'))
    { // ONLY CACHES THE IMAGES ONCE
    SlideReady = false;
    self.defaultStatus = 'Downloading next picture...';
    Slides[NextSlide] = CacheImage(Slides[NextSlide]);
    Download();
    }
    return true;
    }
    
    function StartSlideShow() {
    CurrentSlide = -1;
    Slides[0] = CacheImage(Slides[0]);
    SlideReady = true;
    ShowSlide(1);
    }
    </script>
    </head>
    <body onload="StartSlideShow()">
    <form name="SlideShow">
    <table>
    <tr>
    <td colspan="2">
    <img name="Screen" width="200" height="150" src="http://boudhatour.wapath.com/files/kora2/step1.Jpg"
    alt="" /></td>
    </tr>
    <tr>
    <td>
    <input type="button" name="Previous" value=" << " onclick="ShowSlide(-1)" /></td>
    <td align="right">
    <input type="button" name="Next" value=" >> " onclick="ShowSlide(1)" /></td>
    </tr>
    </table>
    </form>
    <a href="http://click.buzzcity.com/click.php?cid=9366&amp;partnerid=12236" style="color: #1abe17">
    Catch up with frens thru email!</a><img src="http://txads.buzzcity.com/show.php?txt=1&amp;cid=9366&amp;partnerid=12236"
    alt="" /><img src="http://a.admob.com/e0?a=a1488f4d1101950&amp;s=a146fd029ce4483&amp;z=1226929641.79&amp;lt=0.435679101746&amp;rt=2"
    alt="" width="1" height="1" /><br />
    <a href="http://click.buzzcity.com/click.php?cid=9366&amp;partnerid=12307&amp;rd=http%3A%2F%2Fxtgem.com%2Fc%2Fbuzzcallback%3Fsite%3Dbou dhatour.wapath.com">
    Catch up with frens thru email!</a><img src="http://txads.buzzcity.com/show.php?txt=1&amp;cid=9366&amp;partnerid=12307"
    alt="" />
    </body>
    </html>
    gdmorning Rangana always thank you verry much for your great help and your kindness ok i will copy it and part in new html page http://boudhatour.wapath.com/files/kora2/slideshow2.b

  5. #20
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: slideshow javascript need help

    So, is it fixed now? Your URL is incorrect. It's 404 error.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  6. #21
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    Quote Originally Posted by rangana View Post
    So, is it fixed now? Your URL is incorrect. It's 404 error.
    hi no my url its not 404 you have only check it befor i have finish it but now its right you can check there but always couldn't run may be possible in xtgem server have an bug ? I will ask xtgem team about this problem i dont understand for wich reason couldn't run or possible may be because i use my cell i dont have computer what you thinks may be i need an computer ok afternoon i go to cyber coffe try with computer to copy that script you give me and past in new page anyway its to difficult but i dont want give up i try until its working . See you and always salamat for your kindness my friend afternoon i try with computer may be ?

  7. #22
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: slideshow javascript need help

    It doesn't seem that you applied my changes. I've tested it at my end on both IE and FF and it works.

    Your URL shows that you haven't applied my suggested code.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  8. #23
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    Quote Originally Posted by rangana View Post
    It doesn't seem that you applied my changes. I've tested it at my end on both IE and FF and it works.

    Your URL shows that you haven't applied my suggested code.
    hi Rangana i will tell beside your help i ask one friend to put this scrip in him server there : http://83.138.146.17/slideshow.htm then i having uploaded this page in my website two things : there in my friend web adress the script could good working without problem and when i upload it to my website there : http://boudhatour.wapath.com/files/kora2/slideshow_2.htm couldn't work surly have an proablem in xtgem server when i upload it change somewhere the code with internet explorer 4 i got an error message in this page its writing : error line57 char:1 error object expected code : 0 and because that error couldn't run properly . Right now i need contact xtgem team in report bug already i send an message for them and now i waiting they answare me i will tell you more later about that problem anyway thanks my friend see you later

  9. #24
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    dear Rangana please can you tell me for why it does run : http://boudhatour.wapath.com/files/kora2/test/slideshow_3.htm
    and it doesn't run
    http://boudhatour.wapath.com/files/kora2/test/slideshow_1.htm
    thanks a lot

  10. #25
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: slideshow javascript need help

    The (later) URL has some errors on it.
    1. You have some list which doesn't have "comma" at the end (you might want to recheck it).
    2. Your last list in the array has a comma, it should be removed.


    Alternatively, what you're doing is a bit tedious.

    You could have saved a number of lines, by changing this part:
    Code:
    var Slides = new Array(
        'http://boudhatour.wapath.com/files/kora2/step1.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step2.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step3.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step4.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step5.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step6.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step7.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step8.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step9.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step10.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step11.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step12.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step13.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step14.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step15.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step16.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step17.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step18.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step19.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step20.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step21.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step22.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step23.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step24.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step25.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step26.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step27.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step28.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step29.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step30.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step31.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step32.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step33.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step34.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step35.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step36.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step37.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step38.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step39.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step40.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step41.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step42.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step43.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step44.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step45.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step46.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step47.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step48.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step49.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step50.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step51.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step52.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step53.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step54.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step55.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step56.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step57.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step58.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step59.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step60.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step61.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step62.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step63.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step64.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step65.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step66.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step67.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step68.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step69.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step70.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step71.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step72.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step73.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step74.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step75.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step76.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step77.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step78.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step79.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step80.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step81.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step82.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step83.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step84.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step85.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step86.Jpg',
    );
    ...into:
    Code:
    var Slides = new Array();
    for(var i=1;i<=86;i++)
     Slides.push('http://boudhatour.wapath.com/files/kora2/step'+i+'.Jpg');
    Hope that helps.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  11. #26
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    Quote Originally Posted by rangana View Post
    The (later) URL has some errors on it.
    1. You have some list which doesn't have "comma" at the end (you might want to recheck it).
    2. Your last list in the array has a comma, it should be removed.


    Alternatively, what you're doing is a bit tedious.

    You could have saved a number of lines, by changing this part:
    Code:
    var Slides = new Array(
        'http://boudhatour.wapath.com/files/kora2/step1.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step2.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step3.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step4.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step5.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step6.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step7.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step8.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step9.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step10.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step11.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step12.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step13.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step14.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step15.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step16.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step17.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step18.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step19.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step20.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step21.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step22.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step23.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step24.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step25.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step26.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step27.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step28.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step29.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step30.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step31.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step32.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step33.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step34.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step35.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step36.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step37.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step38.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step39.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step40.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step41.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step42.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step43.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step44.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step45.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step46.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step47.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step48.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step49.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step50.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step51.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step52.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step53.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step54.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step55.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step56.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step57.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step58.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step59.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step60.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step61.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step62.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step63.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step64.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step65.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step66.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step67.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step68.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step69.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step70.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step71.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step72.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step73.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step74.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step75.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step76.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step77.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step78.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step79.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step80.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step81.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step82.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step83.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step84.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step85.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step86.Jpg',
    );
    ...into:
    Code:
    var Slides = new Array();
    for(var i=1;i<=86;i++)
     Slides.push('http://boudhatour.wapath.com/files/kora2/step'+i+'.Jpg');
    Hope that helps.
    ok Rangana my friend i will following your advise and try again tomorow i will tell you the result billion salamat my friend

  12. #27
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    Quote Originally Posted by rangana View Post
    The (later) URL has some errors on it.
    1. You have some list which doesn't have "comma" at the end (you might want to recheck it).
    2. Your last list in the array has a comma, it should be removed.


    Alternatively, what you're doing is a bit tedious.

    You could have saved a number of lines, by changing this part:
    Code:
    var Slides = new Array(
        'http://boudhatour.wapath.com/files/kora2/step1.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step2.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step3.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step4.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step5.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step6.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step7.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step8.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step9.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step10.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step11.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step12.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step13.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step14.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step15.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step16.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step17.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step18.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step19.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step20.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step21.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step22.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step23.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step24.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step25.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step26.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step27.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step28.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step29.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step30.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step31.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step32.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step33.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step34.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step35.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step36.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step37.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step38.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step39.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step40.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step41.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step42.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step43.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step44.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step45.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step46.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step47.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step48.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step49.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step50.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step51.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step52.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step53.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step54.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step55.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step56.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step57.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step58.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step59.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step60.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step61.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step62.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step63.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step64.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step65.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step66.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step67.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step68.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step69.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step70.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step71.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step72.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step73.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step74.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step75.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step76.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step77.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step78.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step79.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step80.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step81.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step82.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step83.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step84.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step85.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step86.Jpg',
    );
    ...into:
    Code:
    var Slides = new Array();
    for(var i=1;i<=86;i++)
     Slides.push('http://boudhatour.wapath.com/files/kora2/step'+i+'.Jpg');
    Hope that helps.
    do you want like that ???
    [code]
    var Slides = new Array( 'http://boudhatour.wapath.com/files/kora2/step1.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step2.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step3.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step4.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step5.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step6.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step7.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step8.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step9.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step10.Jpg'
    'http://boudhatour.wapath.com/files/kora2/step11.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step12.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step13.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step14.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step15.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step16.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step17.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step18.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step19.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step20.Jpg'
    'http://boudhatour.wapath.com/files/kora2/step21.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step22.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step23.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step24.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step25.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step26.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step27.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step28.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step29.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step30.Jpg'
    'http://boudhatour.wapath.com/files/kora2/step31.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step32.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step33.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step34.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step35.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step36.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step37.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step38.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step39.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step40.Jpg'
    'http://boudhatour.wapath.com/files/kora2/step41.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step42.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step43.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step44.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step45.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step46.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step47.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step48.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step49.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step50.Jpg'
    'http://boudhatour.wapath.com/files/kora2/step51.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step52.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step53.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step54.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step55.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step56.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step57.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step58.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step59.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step60.Jpg'
    'http://boudhatour.wapath.com/files/kora2/step61.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step62.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step63.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step64.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step65.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step66.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step67.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step68.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step69.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step70.Jpg'
    'http://boudhatour.wapath.com/files/kora2/step71.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step72.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step73.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step74.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step75.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step76.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step77.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step78.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step79.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step80.Jpg'
    'http://boudhatour.wapath.com/files/kora2/step81.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step82.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step83.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step84.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step85.Jpg',
    'http://boudhatour.wapath.com/files/kora2/step86.Jpg',
    );
    for(var i=1;i<=86;i++)
    Slides.push('http://boudhatour.wapath.com/files/kora2/step'+i+'.Jpg');

  13. #28
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: slideshow javascript need help

    No, just this:
    Code:
    var Slides = new Array();
    for(var i=1;i<=86;i++)
     Slides.push('http://boudhatour.wapath.com/files/kora2/step'+i+'.Jpg');
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  14. #29
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    Quote Originally Posted by rangana View Post
    The (later) URL has some errors on it.
    1. You have some list which doesn't have "comma" at the end (you might want to recheck it).
    2. Your last list in the array has a comma, it should be removed.


    Alternatively, what you're doing is a bit tedious.

    You could have saved a number of lines, by changing this part:
    Code:
    var Slides = new Array(
        'http://boudhatour.wapath.com/files/kora2/step1.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step2.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step3.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step4.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step5.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step6.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step7.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step8.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step9.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step10.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step11.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step12.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step13.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step14.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step15.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step16.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step17.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step18.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step19.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step20.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step21.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step22.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step23.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step24.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step25.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step26.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step27.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step28.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step29.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step30.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step31.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step32.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step33.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step34.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step35.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step36.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step37.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step38.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step39.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step40.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step41.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step42.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step43.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step44.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step45.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step46.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step47.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step48.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step49.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step50.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step51.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step52.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step53.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step54.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step55.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step56.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step57.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step58.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step59.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step60.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step61.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step62.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step63.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step64.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step65.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step66.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step67.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step68.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step69.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step70.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step71.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step72.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step73.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step74.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step75.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step76.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step77.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step78.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step79.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step80.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step81.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step82.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step83.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step84.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step85.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step86.Jpg',
    );
    
    var Slides = new Array();
    for(var i=1;i<=86;i++)
     Slides.push('http://boudhatour.wapath.com/files/kora2/step'+i+'.Jpg');
    Hope that helps.
    sorry i am really stupid and without knowledge i have try your suggestion but nothing else happen : http://boudhatour.wapath.com/files/kora2/test/slideshow_1.htm
    Last edited by arian6; 12-09-2008 at 08:36 AM.

  15. #30
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: slideshow javascript need help

    Remove highlighted:
    Code:
    // PUT THE URL'S OF YOUR IMAGES INTO THIS ARRAY...
    [ code ]
    var Slides = new Array(    'http://boudhatour.wapath.com/files/kora2/step1.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step2.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step3.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step4.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step5.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step6.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step7.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step8.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step9.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step10.Jpg'
        'http://boudhatour.wapath.com/files/kora2/step11.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step12.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step13.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step14.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step15.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step16.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step17.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step18.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step19.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step20.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step21.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step22.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step23.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step24.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step25.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step26.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step27.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step28.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step29.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step30.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step31.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step32.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step33.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step34.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step35.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step36.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step37.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step38.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step39.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step40.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step41.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step42.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step43.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step44.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step45.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step46.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step47.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step48.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step49.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step50.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step51.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step52.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step53.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step54.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step55.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step56.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step57.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step58.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step59.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step60.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step61.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step62.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step63.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step64.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step65.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step66.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step67.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step68.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step69.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step70.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step71.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step72.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step73.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step74.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step75.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step76.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step77.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step78.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step79.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step80.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step81.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step82.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step83.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step84.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step85.Jpg',
        'http://boudhatour.wapath.com/files/kora2/step86.Jpg',
    );
    for(var i=1;i<=86;i++)
     Slides.push('http://boudhatour.wapath.com/files/kora2/step'+i+'.Jpg');
    ...so it should only read:
    Code:
    var Slides = new Array();
    for(var i=1;i<=86;i++)
     Slides.push('http://boudhatour.wapath.com/files/kora2/step'+i+'.Jpg');
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.



Page 2 of 3 First 1 2 3 Last

Tags for this Thread