random text [Archive] - Fly Fishing Forum

: random text

01-25-2000, 10:49 PM
Sorry I've been absent for so long. New job is exciting with plenty to do. Juro had mentioned the need for a random quotation generator. Here'sa simple little JavaScript that can be used on any page:


I've escaped the script tags to make it easy to copy and paste from the browser screen into any HTML file.

Anglers of a different sort....

01-25-2000, 11:57 PM
Awesome! Does it take newlines as slash-n? I guess I'll find out, and that would be a standard javascript constant question. Also, does the function document.write load with the browser? Are there centering or font parameters?

Glad to see you had insomnia! Looking forward to your Florida trip I'll bet.

01-26-2000, 09:39 PM
\<!--no-->n will generate a new line, but not an HTML line break - that's a JS constant. document.write("this
three lines") will load with the browser only if it is placed outside a function defintion:

&lt;SCRIPT language="JavaScript"&gt;
function write_it() {
document.write("This is three&lt;BR&gt; lines
in the&lt;BR&gt; browser \<!--no-->n \(two when viewing source\)")

This will not execute until the function write_it() is called. An example of how you would call it might be:

&lt;A HREF="" onclick="write_it();return false"&gt;How many lines?&lt;/A&gt;

Yes. I'm *psyched* for Florida. Just learned how to tie Tabory's snake fly. Show me the snook! Spinning deer hair can be a messy, messy endeavor....

Terry, I'm close to getting my scanner set up. Just have to install Win 98 since there are no USB drivers for NT :( I'm struggling with partition space. At this rate I'll be ready to show off my work just as tying season ends and sore arm season opens