View Full Version : From the deepest pit of Newbie-ism.
09-01-2004, 07:17 PM
Ps Some people told me to put those backslashes there.
09-02-2004, 04:47 PM
I think you've got your languages very confused!
Also, don't leave your email address in scripts, it'll get harvested and spammed by computers designed to do so. Use this syntax instead: chronos0 [at] softhome [dot] net
Here's one I made earlier; use this script instead...
I might be nice to you and recreate your weather generator later ;)
Edit: Because I'm so nice :):), your finished script is attached on the post below this one.
var random_text = new random_text();
// Leave as 0.
var number = 0;
random_text[number++] = "Text 1"
random_text[number++] = "Text 2"
random_text[number++] = "Text 3"
random_text[number++] = "Text 4"
random_text[number++] = "Text 5"
random_text[number++] = "Text 6"
random_text[number++] = "Text 7"
random_text[number++] = "Text 8"
random_text[number++] = "Text 9"
random_text[number++] = "Text 10"
// Add more as necessary
var random_number = Math.floor(Math.random() * number);
Just replace the text and you're laughing.
Hope this helps!
09-02-2004, 05:34 PM
After much tweaking and poking, here is your weather generator, fully based on your ideas.
Let us know when you have your website running!
09-02-2004, 09:58 PM
Thank you very much, I don't know why it didn't work, It only showed HTML I put in the <body> before the script, I tried switch and if's using just plain math.random(), <'s, and >'s... Anyway, I'm pretty sure cscript can understand, because if you try to enter a file with an unknown file extension it has an error, <file>.js didn't get this, and it even listed an error I didn't notice. It doesn't, however, understand commands like document.<blablabla>, being cmd.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.