31 users online (1 members and 30 guests)  


Page 1 of 3 1 2 3 Last
  Results 1 to 15 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. #1
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    slideshow javascript need help

    hi i am novice in javascript and i need somebody help me for explain step by step i think i have problem with that script because did not work no image appear and i dont know for wich reason please help me thanks
    Last edited by arian6; 11-15-2008 at 03:06 PM.

  2. #2
    rangana's Avatar
    Moderator/Allstar

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

    Re: slideshow javascript need help

    Could you please provide a link to the page in question.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  3. #3
    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
    Could you please provide a link to the page in question.
    good morning rangana kumusta ka ? Thanx for ur message and sorry for my mistake i cant post web adress until i have posted 5 thread but i will try and i dont writing befor the adress Http you need add it yourself sorry. This page i have add the slideshow javascript and add 86 photo 200x150 called : Step1.jpg , Step2.jpg ext ,, and the adress of this page is : boudhatour.wapath.com/files/kora/Slide.b
    you can show all that pics in this folder named : kora .
    i will be glad if you can explain to ma what is the problem for my photo dont appear and how i can solve this problem thanx a lot salamat friend

  4. #4
    rangana's Avatar
    Moderator/Allstar

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

    Re: slideshow javascript need help

    I'm fine. - "Ok ra ko"

    I'm glad to see someone of the same nationality in the board. - "Nalipay q kay naa njud tawn Pinoy diri".

    For your problem,

    This part:
    Code:
    var Slides = new Array('http://boudhatour.wapath.com/files/kora/step1.Jpg'http://boudhatour.wapath.com/files/kora/step2.Jpg'
    ...is completely erroneous, which goes all the way down on your images declaration.

    You miss to add a comma, to separate the images contained in the array:
    Code:
    var Slides = new Array('http://boudhatour.wapath.com/files/kora/step1.Jpg','http://boudhatour.wapath.com/files/kora/step2.Jpg'
    This should go all the way down your page.

    Format should be like this:
    Code:
    var Slides = new Array('image1','image2','image3');
    Hope that helps.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  5. #5
    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
    aaaaaI'm fine. - "Ok ra ko"

    I'm glad to see someone of the same nationality in the board. - "Nalipay q kay naa njud tawn Pinoy diri".

    For your problem,

    This part:
    Code:
    var Slides = new Array('http://boudhatour.wapath.com/files/kora/step1.Jpg'http://boudhatour.wapath.com/files/kora/step2.Jpg'
    ...is completely erroneous, which goes all the way down on your images declaration.

    You miss to add a comma, to separate the images contained in the array:
    Code:
    var Slides = new Array('http://boudhatour.wapataaah.com/files/kora/step1.Jpg','http://boudhatour.wapath.com/files/kora/step2.Jpg'
    b

    This should go all the way down your page.

    Format should be like this:
    Code:
    var Slides = new Array('image1','image2','image3');
    Hope that helps.
    ,b
    hi bro thanx 4 answare my request and is my turn now to answare you . I'm sorry but i am not filipinos guy i'm frenche from paris but my wife she are filipinos woman she come from poerto princessa . For my slideshow i have following your advise but surly somewhere i am again wrong with that script because always couldn't appear any image . I dont know for why but please bro give me your correction in this script then i will compare and loock where i am wrong and where is the problem thanx to much bro salamat

  6. #6
    rangana's Avatar
    Moderator/Allstar

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

    Re: slideshow javascript need help

    Okay, I see, not bad though

    Anyway, I can't get this working right now as it's too late at my end 12:00am (sunday).

    I'll be back on Tuesday at my end. I've had all my majors tomorrow and I could'nt be certain if I'll be online.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  7. #7
    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
    Okay, I see, not bad though

    Anyway, I can't get this working right now as it's too late at my end 12:00am (sunday).

    I'll be back on Tuesday at my end. I've had all my majors tomorrow and I could'nt be certain if I'll be online.
    dear rangana
    no problem i understand but until i understand where i am wrong in this script i will continue to try . Alway i cant ad URL here please add by yourself before the adress i give to you (http) ok my friend and to day i try another slideshow script but as usual did not work you can see my test there : (url)(you add: http) xtgem.com/go/(ff527af51317accce3fb1653007c87db)
    salamat again ;-)

  8. #8
    rangana's Avatar
    Moderator/Allstar

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

    Re: slideshow javascript need help

    • First, change highlighted into type="text/javascript" (it's deprecated):
      Code:
      <script language="JavaScript">
    • Secondly, you have a conflicting declaration of Slides array in your script.
    • Third, it appears that the images does'nt seem to exist: http://boudhatour.wapath.com/files/kora/step1.Jpg
      Also, please be careful on the capital J on the extension of (jpg), Linux server are case-sensitive, incase the one that hosts on yours is a Linux server.
    • Try this ammendment instead:
      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>Hello</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/kora/step1.Jpg','http://boudhatour.wapath.com/files/kora/step2.Jpg','http://boudhatour.wapath.com/files/kora/step3.Jpg','http://boudhatour.wapath.com/files/kora/step4.Jpg','http://boudhatour.wapath.com/files/kora/step5.Jpg','http://boudhatour.wapath.com/files/kora/step6.Jpg','http://boudhatour.wapath.com/files/kora/step7.Jpg','http://boudhatour.wapath.com/files/kora/step8.Jpg','http://boudhatour.wapath.com/files/kora/step9.Jpg','http://boudhatour.wapath.com/files/kora/step10.Jpg','http://boudhatour.wapath.com/files/kora/step11.Jpg','http://boudhatour.wapath.com/files/kora/step12.Jpg','http://boudhatour.wapath.com/files/kora/step13.Jpg','http://boudhatour.wapath.com/files/kora/step14.Jpg','http://boudhatour.wapath.com/files/kora/step15.Jpg','http://boudhatour.wapath.com/files/kora/step16.Jpg','http://boudhatour.wapath.com/files/kora/step17.Jpg','http://boudhatour.wapath.com/files/kora/step18.Jpg','http://boudhatour.wapath.com/files/kora/step19.Jpg','http://boudhatour.wapath.com/files/kora/step20.Jpg','http://boudhatour.wapath.com/files/kora/step21.Jpg','http://boudhatour.wapath.com/files/kora/step22.Jpg','http://boudhatour.wapath.com/files/kora/step23.Jpg','http://boudhatour.wapath.com/files/kora/step24.Jpg','http://boudhatour.wapath.com/files/kora/step25.Jpg','http://boudhatour.wapath.com/files/kora/step26.Jpg','http://boudhatour.wapath.com/files/kora/step27.Jpg','http://boudhatour.wapath.com/files/kora/step28.Jpg','http://boudhatour.wapath.com/files/kora/step29.Jpg','http://boudhatour.wapath.com/files/kora/step30.Jpg','http://boudhatour.wapath.com/files/kora/step31.Jpg','http://boudhatour.wapath.com/files/kora/step32.Jpg','http://boudhatour.wapath.com/files/kora/step33.Jpg','http://boudhatour.wapath.com/files/kora/step34.Jpg','http://boudhatour.wapath.com/files/kora/step35.Jpg','http://boudhatour.wapath.com/files/kora/step36.Jpg','http://boudhatour.wapath.com/files/kora/step37.Jpg','http://boudhatour.wapath.com/files/kora/step38.Jpg','http://boudhatour.wapath.com/files/kora/step39.Jpg','http://boudhatour.wapath.com/files/kora/step40.Jpg','http://boudhatour.wapath.com/files/kora/step41.Jpg','http://boudhatour.wapath.com/files/kora/step42.Jpg','http://boudhatour.wapath.com/files/kora/step43.Jpg','http://boudhatour.wapath.com/files/kora/step44.Jpg','http://boudhatour.wapath.com/files/kora/step45.Jpg','http://boudhatour.wapath.com/files/kora/step46.Jpg','http://boudhatour.wapath.com/files/kora/step47.Jpg','http://boudhatour.wapath.com/files/kora/step48.Jpg','http://boudhatour.wapath.com/files/kora/step49.Jpg','http://boudhatour.wapath.com/files/kora/step50.Jpg','http://boudhatour.wapath.com/files/kora/step51.Jpg','http://boudhatour.wapath.com/files/kora/step52.Jpg','http://boudhatour.wapath.com/files/kora/step53.Jpg','http://boudhatour.wapath.com/files/kora/step54.Jpg','http://boudhatour.wapath.com/files/kora/step55.Jpg','http://boudhatour.wapath.com/files/kora/step56.Jpg','http://boudhatour.wapath.com/files/kora/step57.Jpg','http://boudhatour.wapath.com/files/kora/step58.Jpg','http://boudhatour.wapath.com/files/kora/step59.Jpg','http://boudhatour.wapath.com/files/kora/step60.Jpg','http://boudhatour.wapath.com/files/kora/step61.Jpg','http://boudhatour.wapath.com/files/kora/step62.Jpg','http://boudhatour.wapath.com/files/kora/step63.Jpg','http://boudhatour.wapath.com/files/kora/step64.Jpg','http://boudhatour.wapath.com/files/kora/step65.Jpg','http://boudhatour.wapath.com/files/kora/step66.Jpg','http://boudhatour.wapath.com/files/kora/step67.Jpg','http://boudhatour.wapath.com/files/kora/step68.Jpg','http://boudhatour.wapath.com/files/kora/step69.Jpg','http://boudhatour.wapath.com/files/kora/step70.Jpg','http://boudhatour.wapath.com/files/kora/step71.Jpg','http://boudhatour.wapath.com/files/kora/step72.Jpg','http://boudhatour.wapath.com/files/kora/step73.Jpg','http://boudhatour.wapath.com/files/kora/step74.Jpg','http://boudhatour.wapath.com/files/kora/step75.Jpg','http://boudhatour.wapath.com/files/kora/step76.Jpg','http://boudhatour.wapath.com/files/kora/step77.Jpg','http://boudhatour.wapath.com/files/kora/step78.Jpg','http://boudhatour.wapath.com/files/kora/step79.Jpg','http://boudhatour.wapath.com/files/kora/step80.Jpg','http://boudhatour.wapath.com/files/kora/step81.Jpg','http://boudhatour.wapath.com/files/kora/step82.Jpg','http://boudhatour.wapath.com/files/kora/step83.Jpg','http://boudhatour.wapath.com/files/kora/step84.Jpg','http://boudhatour.wapath.com/files/kora/step85.Jpg','http://boudhatour.wapath.com/files/Kora/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()">
      <p align="center">
      <form name="SlideShow">
      <table>
      <tr>
         <td colspan=2><img name="Screen" width=200 height=150></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>
      </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%3Dboudhatour.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>
      Fix the images and get back for the result.

      That's a fresh copy from the original script of Jason Moon.


    Hope that helps.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  9. #9
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    hi friend thanx for your help but i couldn't try it fast because before try that script i need rename all that photo and change Step1.jpg by step1.Jpg and i have 86 photo in french version and 86 photo in english version i need change all of that may be i need work two or three days for that then i will tell you if its ok but thanks to much for your great help i am sur now we are in right path see you later i need much work now salamat god bless you my friend

  10. #10
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    hi friend i have following your advise about renamed the photo and i have renamed 86 photo but nothing happens always blank screen in this slide show and i dont understant for why ? You can check it at this adress always you need add before( http) xtgem.com/go/(c2ae672b6c28fd86084f7fe2a3626b58) thanx for your help

  11. #11
    arian6's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    29

    Re: slideshow javascript need help

    Quote Originally Posted by arian6 View Post
    hi friend i have following your advise about renamed the photo and i have renamed 86 photo but nothing happens always blank screen in this slide show and i dont understant for why ? You can check it at this adress always you need add before( http)http://xtgem.com/go/(066e78e15e56ce9eb14cf94305c5f98f)) thanx for your
    help
    i change folder name is kora2 because until that slideshow did work i can't put it online thanks rangata i hope you could help me to solved that problem to my side i couldn't because i dont understand what problem salamat
    bro
    Last edited by arian6; 11-18-2008 at 05:52 AM.

  12. #12
    rangana's Avatar
    Moderator/Allstar

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

    Re: slideshow javascript need help

    Which slideshow are you referring?

    From the link you've provided, I am transferred on this URL isntead: http://xtgem.com/default

    Please provide a correct link.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  13. #13
    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
    Which slideshow are you referring?

    From the link you've provided, I am transferred on this URL isntead: http://xtgem.com/default

    Please provide a correct link.
    so sorry rangana for my error that is correct adress : http://boudhatour.wapath.com/files/kora2/Slide.b
    i have renamed all Jpg of that folder and try but always blank screen thanx for your help

  14. #14
    rangana's Avatar
    Moderator/Allstar

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

    Re: slideshow javascript need help

    No problem.

    ...but I think that the script itself from DD: http://www.dynamicdrive.com/dynamicindex14/preloadslide.htm

    ...is bugous. I can't even see the images preloading.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  15. #15
    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
    No problem.

    ...but I think that the script itself from DD: http://www.dynamicdrive.com/dynamicindex14/preloadslide.htm

    ...is bugous. I can't even see the images preloading.
    hi Rangana good morning i have make some correction in the html between <body></body> part of that script now the first image appears but the next image always can't run i dont see for why . Please my friend can help me a bit more for solve that problem thanx to much you can check there : http://boudhatour.wapath.com/files/kora2/Slide.b
    Last edited by arian6; 11-18-2008 at 09:15 PM.



Page 1 of 3 1 2 3 Last

Tags for this Thread