473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

Jul 20 '05 #1
2 1500
serverside

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
Stephan Hauduc wrote on 16 jul 2003 in comp.lang.javascript:
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


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)

Jul 20 '05 #2
Stephan Hauduc wrote on 16 jul 2003 in comp.lang.javascript:
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
Stephan Hauduc wrote on 16 jul 2003 in comp.lang.javascript:
> 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


this depends on the platform you want to use:

serverside


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

<%
Set fs = Server.CreateObject("Scripting.FileSystemObject")
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("nextimg()",imagtime(nn)*1000)
}
</script>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: FAQPoster | last post by:
An HTML version of this document is available at: http://www.mvps.org/access/netiquette.htm Feeling left out? Alone? Wondering why everyone's ignoring you? Or why you're being flamed for what...
0
by: FAQPoster | last post by:
An HTML version of this document is available at: http://www.mvps.org/access/netiquette.htm Feeling left out? Alone? Wondering why everyone's ignoring you? Or why you're being flamed for what...
0
by: FAQPoster | last post by:
An HTML version of this document is available at: http://www.mvps.org/access/netiquette.htm Feeling left out? Alone? Wondering why everyone's ignoring you? Or why you're being flamed for what...
0
by: FAQPoster | last post by:
An HTML version of this document is available at: http://www.mvps.org/access/netiquette.htm Feeling left out? Alone? Wondering why everyone's ignoring you? Or why you're being flamed for what...
0
by: FAQPoster | last post by:
An HTML version of this document is available at: http://www.mvps.org/access/netiquette.htm Feeling left out? Alone? Wondering why everyone's ignoring you? Or why you're being flamed for what...
0
by: EastendLad | last post by:
OK guys hope this isnt to below you all but im new to msql and would appreciate some help. I have the following tables forum_frm (ALIAS = F) ########################## # id_frn # title_frm # ...
17
by: michel.ank | last post by:
Hi, I'm using the class PrintLines and my last record of page aren't with the borders. Somebody can help me? Thanks,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.