Thread: Random page
View Single Post
Old 09-13-2011, 12:15 AM   #11
emellaich
Wizard
emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.emellaich ought to be getting tired of karma fortunes by now.
 
Posts: 1,101
Karma: 4388403
Join Date: Oct 2007
Device: Palm>Ebookman>IPaq>Axim>Cybook>Kndl2>IPAD>Kndl3SO>Voyager>Oasis
I'd think it would be pretty easy as an HTML/Web app. Say you have 100 poems. Put each on it's own web page with a next poem button.

Name each poem numerically 1.html, 2.HTML, ...

Now use javacript to select a random number from one to one hundred. Stick this into the target address for the next poem button. So the next poem might take you to:
"http:\\www.mypoems.com\" + random-number + ".html". Which might translate to:

http:\\www.mypoems.com\56.html
emellaich is offline   Reply With Quote