473,714 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Slide show: this should be fairly straightforward - a what language to use question

Note: I tried cross-posting this message to several newsgoups,
including comp.lang.perl. misc, c.l.p.moderated ,
comp.infosystem s.www.authoring.cgi, comp.lang.javas cript and
comp.lang.php. Nothing appeared on my news server, so I'm trying
again - this time posting a separate copy of the message to each
group.

I'm thinking this should be fairly easy to accomplish - a quick and
dirty ... what? ... script? program?

Background: I have a website - created using a html-generator
application called Dreamweaver. I have some limited knowledge of
html, and I sort of know what php does. I've read that Perl is cool,
powerful and free ... but beyond that ...???. I know next to nothing
about Javascript.

Here's the scenario:

o User brings up page with, say, 5 thumbnail images. The thumbnails
represent 5 sets of slides (jpegs), in, say, 5 separate subdirectories
living in my area of my website host's system. Each slide set
contains from 10 to 20 images, each with an associated caption. Jpegs
are named: s01.jpg, s02.jpg, s03.jpg, ... in each subdirectory (or
maybe they have unique names - but let's simplify). The slides are
different sizes, ranging from 400x300 to 1000x800 pixels

o Selecting a thumbnail (by clicking) from among the 5 takes the user
to a page where he sees the first slide and first caption associated
with that thumb. In additon to the jpeg and the caption, the screen
would contain some buttons that the user can click to go back a slide,
go forward a slide, or return home to thumbnail page. User can also
click on an image to enlarge it - meaning he would bring up the same
page, but it would show the file t01.jpg, which is, say, an un-cropped
version of s01.jpg. (Or perhaps, he would have specified at the home
page whether he wanted the high or the low bandwith version of the
slide show.)

o Subsequent clicking on the forward button brings up the subsequent
slides in sequence, returning to the first slide after the last is
displayed. Other than the different images and captions, the pages are
identical with regard to title, background, font, layout, etc.

I know how to accomplish this by the brute force method: For each of
the X number of images in a subdirectory, create X unique html
code-pages - slide1.htm, slide2.htm, etc. - that each reference a
particular image and particular caption, bringing up the next (or
previous) code-page in sequence when the user clicks to advance (or go
back). So for 5 sets of slides, each with 20 images, you'd have a
total of 100 unique .htm files. Actually, there would be 200 files,
given that there are a small and large version of each image.

Here's the more elegant approach:

One "routine" does everything. You ?pass? the name of the slide show
subdirectory to the routine as an ?argument?, and assign it to a
filename ?string variable? somehow. You might also pass the number of
slides in the subdirectory, unless there's a way for the routine to
determine what it is (like, by reading the number from another file,
or by "calling" some ?system function?, that reveals the number of
files in the directory.) The routine then loops through the list,
counting from 1 to X, and somehow opening the associated s0n.jpg file
(and associated caption text) to put up on the user's screen as he
clicks his way through the show.

This brings up a host (no pun intended) of basic questions:

o Where would this code or script or html actually run? On the site
host? It is downloaded to the user's machine? Is it intrepreted by
some entity - like the browser?

o What support is needed on the host side for something like this?
What about the user/client side? If it's just a browser he needs, will
any old browser do? (I do know that the host for my own website ...
catalog.com ... does support php. The support for it is free for the
sites they host.)

o Is this a question of "self-modifying" html? (I'm thinking that's
not possible.)

o What is the easiest way to get this done. Could you learn enough
php, perl, javascript, or whatever in, say, a day and a half, to write
this little routine together and get it working?
Thanks for your attention
-Al Gabis
Camp Springs, Maryland
www.SpiritualNeighborhood.org
Jul 23 '05 #1
8 2944
Al Davis <no******@no-one.net> wrote in
news:56******** *************** *********@4ax.c om:
Note: I tried cross-posting this message to several newsgoups,
including comp.lang.perl. misc, c.l.p.moderated ,
comp.infosystem s.www.authoring.cgi, comp.lang.javas cript and
comp.lang.php. Nothing appeared on my news server, so I'm trying
again - this time posting a separate copy of the message to each
group.
Multi-posting is the wrong thing to do. Stick with crossposting,
where appropriate.
One "routine" does everything. You ?pass? the name of the slide show
subdirectory to the routine as an ?argument?, and assign it to a
filename ?string variable? somehow. You might also pass the number of
slides in the subdirectory, unless there's a way for the routine to
determine what it is (like, by reading the number from another file,
or by "calling" some ?system function?, that reveals the number of
files in the directory.) The routine then loops through the list,
counting from 1 to X, and somehow opening the associated s0n.jpg file
(and associated caption text) to put up on the user's screen as he
clicks his way through the show. o Where would this code or script or html actually run?
On the host.
o What support is needed on the host side for something like this?
PHP
o What is the easiest way to get this done.
It's simple enought with PHP.
Could you learn enough php .... in, say, a day and a half, to write
this little routine together and get it working?
Perhaps you could, but we don't know. If you have PHP available
on your web host, it's worth knowing something about it, as you'll
likely find other uses than just this task.
Thanks for your attention
-Al Gabis
Camp Springs, Maryland
www.SpiritualNeighborhood.org


Please fix your signature. It should start with
a proper signature delimiter, which is two dashes
followed by a space, alone on the first line
of the signature block.

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 23 '05 #2
Al Davis wrote:
Note: I tried cross-posting this message to several newsgoups,
including comp.lang.perl. misc, c.l.p.moderated ,
comp.infosystem s.www.authoring.cgi, comp.lang.javas cript and
comp.lang.php.
And why, might one ask, did you feel you needed to post your query in so
many groups?

http://www.uwasa.fi/~ts/http/crospost.html

http://www.cs.tut.fi/~jkorpela/usenet/xpost.html#why1
Nothing appeared on my news server, so I'm trying again - this time
posting a separate copy of the message to each group.


Multiposting is unlikely to win you any friends.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 23 '05 #3
Hi Al,

You need to use a script running on your server to do this.

Try searching Google for "php slide show", for example (I think PHP is
easier to learn than most server scripting languages)

Here's a script I found after about a minute:
http://codewalkers.com/seecode/492.html

Does that help?

Phil

--
Philip Ronan
ph***********@v irgin.net
(Please remove the "z"s if replying by email)
Jul 23 '05 #4
On Tue, 24 Aug 2004 20:05:22 GMT, Dave Patton <sp**@trap.inva lid>
wrote:
Please fix your signature. It should start with
a proper signature delimiter, which is two dashes
followed by a space, alone on the first line
of the signature block.

Huh - okay .. Will do. Thanks.

--
Al Gabis

Jul 23 '05 #5
Hey Brian,

Just a comment. You usenet denizens seem to be a pretty fussy group
with regard to "netiquette ". I'm wondering if there's anything at all
that would "win friends" with most of the regulars on these
discussions. I believe the content of my post explains pretty well why
I cross-posted. Don't programmers specialize in fairly narrow fields?
Would someone who knows javascript necessarily know perl, or php at
all? The generality of my question - not even knowing where to start
with this little program of mine - not even what language to use -
seemed to call for a general post to at least 3 or 4 places. (Just
browsing through the list, I actually saw something like 2 dozen
groups where the question might have been logically asked) I was half
expecting that I might get different answers from respondents in
different groups. Since my original post didn't get through anyway,
it's a moot point. But actually, I'm thinking now that it was
probably *better* to do multiple, separate postings. That way people
who responded in one group wouldn't have their response posted in
other places. I probably should have simply kept quiet about having
done the multiple posts, but I wanted to clear about just how hazy my
question - and my knowledge - was.

In any case. I do understand the point about courtesy on the net, but
I'm a "real-world" guy. There is a hell-of-a-lot of rudeness and
inconsiderate behavior that one must deal with in the neighborhoods
and communities where we all live (see my website and on-line book for
details.) One would hope that usenet folks, having superior
intelligence and education, one would suppose, would be a bit less
formal and more relaxed about their "rules and regulations". Not so
lawyer-like, if you know what I mean. Here's a quote from the Tao Te
Ching that I think applies:

Withou the Tao,
Kindness and compassion
are replaced by law and justice;
Faith and trust are supplanted
by ritual and ceremony

(From "The New Lao Tzu, A Contemporary Tao Te Ching", Rag Grigg,
translator).

regards ... Al
On Tue, 24 Aug 2004 16:10:55 -0400, Brian
<us*****@juliet remblay.com.inv alid> wrote:
Al Davis wrote:
Note: I tried cross-posting this message to several newsgoups,
including comp.lang.perl. misc, c.l.p.moderated ,
comp.infosystem s.www.authoring.cgi, comp.lang.javas cript and
comp.lang.php.


And why, might one ask, did you feel you needed to post your query in so
many groups?

http://www.uwasa.fi/~ts/http/crospost.html

http://www.cs.tut.fi/~jkorpela/usenet/xpost.html#why1
Nothing appeared on my news server, so I'm trying again - this time
posting a separate copy of the message to each group.


Multiposting is unlikely to win you any friends.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/


Jul 23 '05 #6
Thanks greatly.
On Tue, 24 Aug 2004 21:18:17 +0100, Philip Ronan
<ph***********@ virgin.net> wrote:
Hi Al,

You need to use a script running on your server to do this.

Try searching Google for "php slide show", for example (I think PHP is
easier to learn than most server scripting languages)

Here's a script I found after about a minute:
http://codewalkers.com/seecode/492.html

Does that help?

Phil

--
Philip Ronan
ph***********@ virgin.net
(Please remove the "z"s if replying by email)


--
Al Gabis
Camp Sprnigs, Maryland
www.SpiritualNeighborhood.org

Jul 23 '05 #7
On Wed, 25 Aug 2004 15:12:51 GMT, Al Davis <no******@no-one.net> wrote:
There is a hell-of-a-lot of rudeness and
inconsiderate behavior that one must deal with in the neighborhoods
and communities where we all live (see my website and on-line book for
details.)
Same in the real world.
One would hope that usenet folks, having superior
intelligence and education, one would suppose, would be a bit less
formal and more relaxed about their "rules and regulations".
It is the rigor that produces quality discussion. These aren't arbitrary
riles, they are good practice in getting the best discussion.
Not so
lawyer-like, if you know what I mean. Here's a quote from the Tao Te
Ching that I think applies:

Withou the Tao,
Kindness and compassion
are replaced by law and justice;
Faith and trust are supplanted
by ritual and ceremony

(From "The New Lao Tzu, A Contemporary Tao Te Ching", Rag Grigg,
translator).


But look at chapter 8. Why not be like water and flow to places men
despise, in order to be closer in nature to the Tao? In this valey,
flowing like water means going along with the standard mode of operation.
Pushing your banks, wanting it another way, this is not the true Way.

I say the Tao is quite present here. You fail to see it. Not that beating
you over it is in accordance with the Tao either (27).
Jul 23 '05 #8
Al Davis wrote:
Hey Brian,

You usenet denizens seem to be a pretty fussy group
with regard to "netiquette ".


Indeed. For example, we dislike top-posters. You're on the fast track
to the killfiles.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 23 '05 #9

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

Similar topics

5
3480
by: Al Davis | last post by:
Note: I tried cross-posting this message to several newsgoups, including comp.lang.perl.misc, c.l.p.moderated, comp.infosystems.www.authoring.cgi, comp.lang.javascript and comp.lang.php. Nothing appeared on my news server, so I'm trying again - this time posting a separate copy of the message to each group. I'm thinking this should be fairly easy to accomplish - a quick and dirty ... what? ... script? program?
2
10207
by: WillRead | last post by:
I have a VB.Net application and a PowerPoint presentation explaining how each form in the application works, etc.. I would like to select and display the slide appropriate for each form by pressing the F1 key. In other words, I want to use the powerpoint presentation for my help system. I am calling the SlideShow from the applications menu, and it works great; however, the same techniques are not working for selecting individual slides. ...
9
12393
by: Michael Burtenshaw | last post by:
I would like to make a slide show using random images. The problem is my host is 250.com, and they don't support cgi-programs. Is there another way to accomplish random images?
7
3059
by: 7mary4 | last post by:
I am working on a kiosk for a museum, we will be using firefox as the browser, with windows, and a touch screen. We'd like to create a slide show of a small portfolio when the visitors click down to the lowest level of the collection. For instance, after choosing Africa, then Sudan, they will choose what they would like to look at: jewelry, tapestry, metals, etc. When they choose tapestry, there will be groups of ten thumbnails. These...
8
7179
by: marslee | last post by:
I know how to use buttons to go to the next and previous picture in slide show, but i want to change it so when the user clicks the picture instead of button, the script shows the next phicture. How can i change it? Any suggesstions? Thanks! <script language="JavaScript">
3
2347
by: B Maxey | last post by:
I am storing images in a database and need a way to browse those files. I can load the files into an image list or whatever the control needs, but I need a control. It doesn't seem that any of the standard window controls would work, but I am thinking I can just draw all the images on an panel (or a browser form for that matter). Does anyone have any advice?
7
3065
by: Rudy | last post by:
Hello All! After working in the television industry, moving to a developing career has been interesting to say the least. 3 years of developing with books, and the help of you fine folks on this forum, I have learned quite a bit. But that doesn't mean anything when your looking for your first developing gig. 15 years in television production, and not having a college degree in Computer Science does not make me a very good prospect....
3
1845
by: ATS | last post by:
I'm trying to set up a slide show on a web page using Javascript. Here is the code I have so far: <script language="javascript"> alert("**in test area 1"); slides = new Array(); slides = new Image(); slides = new Image();
0
4753
by: question | last post by:
Hi! I have a requirement where I need to display multiple forms one after the other like a slide show. These are in the same application. Basicall on selection of a menu item it should start then clicking on any of th screens or tray icon it should stop. I tried the following (To start it on pressing escape on form1 and end it when escape is again
2
2145
by: vineetbindal | last post by:
Hi all, We have a slide show in a page which shows slids rotating after every 8-10 seconds with some descriptions about them. The problem is if the connection speed is slow then the page loads fine but that slide show takes a lot of time to load and (the place we are running the slide show is white blank page till than) I dont understand why. can someone tell me what can we do for this. i have think of something like
0
8701
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9009
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6621
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5943
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4462
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4715
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3155
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2103
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.