As an alteration to my last post

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stephan Hauduc

    As an alteration to my last post

    What I think is the best way for me to do what I want to do is have a text
    file which contains the following, the number of slides at the top, then the
    time lengths that each file should be displayed for in the slideshow in
    sequence.

    SO what I'd like to do is have a slide show that displays files named as
    slide1.jpg, slide2.jpg to slidexx.jpg with varying times for each files
    display time as specifed in the external file.

    So... any ideas how I would go about this please

    TIA

    Chris



  • Stephan Hauduc

    #2
    Re: As an alteration to my last post

    serverside

    "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
    news:Xns93BAE9F 20D5A5eejj99@19 4.109.133.29...[color=blue]
    > Stephan Hauduc wrote on 16 jul 2003 in comp.lang.javas cript:[color=green]
    > > What I think is the best way for me to do what I want to do is have a
    > > text file which contains the following, the number of slides at the
    > > top, then the time lengths that each file should be displayed for in
    > > the slideshow in sequence.
    > >
    > > SO what I'd like to do is have a slide show that displays files named
    > > as slide1.jpg, slide2.jpg to slidexx.jpg with varying times for each
    > > files display time as specifed in the external file.
    > >
    > > So... any ideas how I would go about this please[/color]
    >
    > this depends on the platform you want to use:
    >
    > Internet + Browser ?
    >
    > Serverside script ?
    >
    > .hta ?
    >
    >
    >
    > --
    > Evertjan.
    > The Netherlands.
    > (Please change the x'es to dots in my emailaddress)[/color]


    Comment

    • Evertjan.

      #3
      Re: As an alteration to my last post

      Stephan Hauduc wrote on 16 jul 2003 in comp.lang.javas cript:[color=blue]
      > "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
      > news:Xns93BAE9F 20D5A5eejj99@19 4.109.133.29...[color=green]
      >> Stephan Hauduc wrote on 16 jul 2003 in comp.lang.javas cript:[color=darkred]
      >> > What I think is the best way for me to do what I want to do is have
      >> > a text file which contains the following, the number of slides at
      >> > the top, then the time lengths that each file should be displayed
      >> > for in the slideshow in sequence.
      >> >
      >> > SO what I'd like to do is have a slide show that displays files
      >> > named as slide1.jpg, slide2.jpg to slidexx.jpg with varying times
      >> > for each files display time as specifed in the external file.
      >> >
      >> > So... any ideas how I would go about this please[/color]
      >>
      >> this depends on the platform you want to use:
      >>[/color]
      > serverside
      >[/color]

      read the txt file into arrays nd execute this
      [sort of pseudo code, asp-vbs + client js, not ready coding]

      <%
      Set fs = Server.CreateOb ject("Scripting .FileSystemObje ct")
      Set ListFile = fs.OpenTextFile (FilePath, ForReading)
      %>
      <script>
      max=<%..read.%>
      n=0
      <% for m=0 to max %>
      imag[++n]=<%..read..%>
      imagtime[n]=<%..read..%>
      <% next%>
      </script>

      <img src="" id="photo">

      <script>
      n=0
      nextimg()

      function nextimg(){
      photo.src=imag[n]
      nn = n
      n = (n<max)? n+1 : 0
      setTimeout("nex timg()",imagtim e(nn)*1000)
      }
      </script>



      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)

      Comment

      Working...