Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Website Qoutes
Website Qoutes
#1
To the venerable author,

I have to seriously thank you for the random quotes/proverbs/llyrics that appear on your Title Page. Some of those have come up in conversations when
(evil laugh) opportunity presented themselves. I'll even admit I used a one on my Honorable Father.

His reply? "Son, just when I thought you caught some wisdom, You had to take my head off with something like that." as he laughs to himself. (it
was the flamethrower one.)
_____
DEATH is Certain. The hour, Uncertain...
Reply
 
#2
You're welcome. The rotating titles on the DWMain and DW5 pages are actually just subsets of my master quote file, which is -- um, let me check --
3,383,051 bytes, 82,186 lines, and 24,198 quotes as of this morning. I've been collecting quotes for about 25 years now, starting with my writer's
notebook back in college and eventually migrating to an electronic edition about 18 years ago.
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.
Reply
 
#3
I'm ashamed to admit, I never noticed those before -- I just clicked on through heading for the stories. Doh!

And now I just spent a good ten minutes or so hitting reload just to see what else would pop up. It's more addictive than Warehouse 23!

--sofaspud
--"Listening to your kid is the audio equivalent of a Salvador Dali painting, Spud." --OpMegs
Reply
 
#4
My work here is done.
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.
Reply
 
#5
if you want to see all of them, you can load the .js file directly (I forget the name now, it's in the page source). That is much quicker than hitting
reload until you see all 500.
-Terry
-----
"so listen up boy, or pornography starring your mother will be the second worst thing to happen to you today"
TF2: Spy
Reply
 
#6
I'm sorry, but I'm code-inept. ...? 500? What 'bout the rest of them?
_____
DEATH is Certain. The hour, Uncertain...
Reply
 
#7
if you look at the source of the main Drunkards Walk page, about a 1/4 of the way down, there is following.
Quote:script language=javascript src="scripts/dwmain.js"
Given it's placement on the page, such a javascript call is a good candidate for the random quote generation.

So if you replace "dwmain.shtml" with "scripts/dwmain.js" in your address bar, you should get the source of the javascript, which in this case is very readable.
It contains an array definition of 500 quotes (what we care about) and a function to make the section of one of those quotes randomly (probably not so interesting).

As for the rest of them, more will show up whenever Bob feels the need to expand said javascript file.
-Terry
-----
"so listen up boy, or pornography starring your mother will be the second worst thing to happen to you today"
TF2: Spy
Reply
 
#8
Thanks for the help... I love these.
_____
DEATH is Certain. The hour, Uncertain...
Reply
 
#9
Random new quote suggestion.

Source: Mike Williamson's Freehold.

Quote:"Bailiff. Please arm the defendant."
--
Sucrose Octanitrate.
Proof positive that with sufficient motivation, you can make anything explode.
Reply
 
#10
Stashed in my master file now.  Thanks!
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)