PDA

View Full Version : I want....



aphel aura
May 18th, 2002, 02:48
any pointers on where I can get a Javascript script for random quotes. The scripts must take the input (in this case, one single sentence as a quote) from an external *.txt file (or something like that) instead of being hardcoded into the HTML document inflating its size. I've checked hotscripts.com but all the random quote scripts there require the list of quotes to be hardcoded into the scripts, or only allows limited amount of data (quotes).

Thanks.

meow
May 18th, 2002, 03:32
Put the javascript in an external .js file instead and link to it in HEAD. Since Javascript is client side I don't think it can read from another file on the server but I may be wrong.

<script type="text/javascript" language="javascript" src="quotes.js"></script>

jmiller
May 25th, 2002, 01:38
Hmm, you could try http://hostedscripts.com and use the remote "Random Text" there. But then again its CGI and Not Javascript.

loggerheads
May 28th, 2002, 16:47
Actually, I could use this too, so could I be really lazy and ask for the complete script? I don't mind it all being in the one html file though.