Html/Java Question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
This is what I have, a .txt document (53 lines).

What I need is some type of script that will randomly select a line from
that document and show it in plain text on the page. Any ideas that I could
be directed too?


Re: Displaying random line from text file on webpage (was Html/Java Question)

Chris C. wrote:

Quoted text here. Click to load it should do the job[1], although you
need to turn the text file in to a fortune file.

[1] You'll need a server that supports PHP, it shouldn't be hard to
find/write something similar in JSP (or another language) if that's what
you prefer.

David Dorward                            /
         Redesign in progress: /
  Microsoft announces IE is dead (so upgrade):

Re: Html/Java Question

Quoted text here. Click to load it

PHP, ASP, CGI, ...  Or load the entire file in to a JavaScript array
and do it with JavaScript.


Site Timeline