random text - Fly Fishing Forum
Worldwide Flyfishing Discussion Talk flyfishing with members around the world!

Thread Tools Search this Thread Rate Thread Display Modes
Old 01-25-2000, 10:49 PM
isoh isoh is offline
Senior Member
Join Date: Feb 2001
Posts: 119
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:


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....
Reply With Quote Quick reply to this message
Sponsored Links
Old 01-25-2000, 11:57 PM
juro's Avatar
juro juro is offline
Coast2coast Flyfishaholic
Join Date: Jan 2000
Location: Steelhead country|striper coast|bonefish belt
Posts: 20,594
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.
Reply With Quote Quick reply to this message
Old 01-26-2000, 09:39 PM
isoh isoh is offline
Senior Member
Join Date: Feb 2001
Posts: 119
RE:random text

\<!--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

Reply With Quote Quick reply to this message

Quick Reply

Register Now

In order to be able to post messages on the Fly Fishing Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
Please enter a password for your user account. Note that passwords are case-sensitive.
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:
Home Waters
Your home waters
Current Favorite Fly
If you only had one... (change anytime)


Human Verification

In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Greetings to all (and my random rodent!) bd12345678 Warmwater flyfishing 11 01-17-2005 06:11 PM

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

vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Copyright Flyfishingforum.com (All Rights Reserved)