Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Website Qoutes
 
#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


Messages In This Thread
Website Qoutes - by Kurisu - 09-18-2008, 09:22 AM
[No subject] - by Bob Schroeck - 09-18-2008, 01:49 PM
[No subject] - by Sofaspud - 09-18-2008, 07:43 PM
[No subject] - by Bob Schroeck - 09-19-2008, 03:32 AM
[No subject] - by sweno - 09-19-2008, 07:55 AM
[No subject] - by Kurisu - 09-20-2008, 04:04 AM
[No subject] - by sweno - 09-20-2008, 05:42 AM
[No subject] - by Kurisu - 09-20-2008, 07:47 PM
[No subject] - by ECSNorway - 05-16-2011, 06:32 PM
[No subject] - by Bob Schroeck - 05-16-2011, 10:23 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)