Fly Fishing Forum

Fly Fishing Forum (http://www.flyfishingforum.com/flytalk4/index.php)
-   Worldwide Flyfishing Discussion (http://www.flyfishingforum.com/flytalk4/forumdisplay.php?f=11)
-   -   random text (http://www.flyfishingforum.com/flytalk4/showthread.php?t=1044)

isoh 01-25-2000 10:49 PM

random text
 
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:

http://adeluca.ne.mediaone.net/js_random.html

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....

juro 01-25-2000 11:57 PM

RE:random text
 
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.

isoh 01-26-2000 09:39 PM

RE:random text
 
\<!--no-->n will generate a new line, but not an HTML line break - that's a JS constant. document.write("this
is
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.open()
document.write("This is three&lt;BR&gt; lines
in the&lt;BR&gt; browser \<!--no-->n \(two when viewing source\)")
document.close()
}
&lt;/SCRIPT&gt;

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 http://216.71.206.188/images/flytalk/Wilk.gif

al


All times are GMT -5. The time now is 01:55 AM.


Copyright Flyfishingforum.com (All Rights Reserved)