Originally posted by algorithmshark
@ ninja boy: This is more of a JavaScript question than an HTML or CSS one. If you're asking how to randomly select a string from an array using a randomly generated number, than you can just use the random number to index the array of strings:
If this isn't what you meant, then no, that didn't really make sense.
Code
// disclaimer: I don't know any js, treat this as pseudocode array = ["one", "two", "three", "four"]; num = rand(1,4); // random integer between 1 and 4 inclusive chosen_string = array[num - 1]; // js indexes from 0, not 1
If this isn't what you meant, then no, that didn't really make sense.
Yeah I guess it is more of a javascript question I just tend to bundle all webcode under the term "html" even though they are different languages. Also you understood the question and that is exactly what I need to do I just can't figure out the correct code to use so it updates live based on the form filled by the random number.
~edit~
Ok I got it all figured out with a bit of help from my brother.