96turnerri
09-09-2003, 08:32 PM
hi could anyone help me with the following script when rum it says unterminated string constant, but i cant find the source of the error :(
<script type="text/javascript">
text = new Array("Spock, will you please sit down! -- Kirk Star Trek: TMP","No, I'm from Iowa. I only work in outer space. -- Kirk Star Trek IV","Captain, life is not a dream. -- Spock Star Trek V","I need a shower. -- Kirk
Sniffing, Yes. -- Spock Star Trek V","Oh, ****!!! -- Data Star Trek Generations","Smooth as an android's bottom, eh, Data? -- Riker Star Trek Insurrection","... and tell Doctor McCoy, he should have wished me luck. -- Spock The
Immunity Syndrome","Nice Legs... for a human -- Worf Qpid","I am NOT a merry man!!! -- Worf Qpid","Please Mrs. Troi! ... and it's Worf not Woof -- Worf Half a Life","What do you want me to do? -- Q
Die -- Worf Deja Q");
document.write(text[parseInt(Math.random()*text.length)]);
</script>
<script type="text/javascript">
text = new Array("Spock, will you please sit down! -- Kirk Star Trek: TMP","No, I'm from Iowa. I only work in outer space. -- Kirk Star Trek IV","Captain, life is not a dream. -- Spock Star Trek V","I need a shower. -- Kirk
Sniffing, Yes. -- Spock Star Trek V","Oh, ****!!! -- Data Star Trek Generations","Smooth as an android's bottom, eh, Data? -- Riker Star Trek Insurrection","... and tell Doctor McCoy, he should have wished me luck. -- Spock The
Immunity Syndrome","Nice Legs... for a human -- Worf Qpid","I am NOT a merry man!!! -- Worf Qpid","Please Mrs. Troi! ... and it's Worf not Woof -- Worf Half a Life","What do you want me to do? -- Q
Die -- Worf Deja Q");
document.write(text[parseInt(Math.random()*text.length)]);
</script>