quote:
Originally posted by SpunkyLoveMuff
The hardest part would be putting the words into an array, but that shouldn't be too hard
Into an array from the text file?
words = textfile.split('\n');
and you've got them into an array in one line... unless I'm misunderstanding you.
Or:
http = new ActiveXObject('Microsoft.XMLHTTP');
http.open('GET', 'http://somesite.com/textfile.txt?refresh='+Math.random(), true);
http.onreadystatechange = function(){
if(http.readyState == 4){
words = http.responseText.split('\n');
}
}
http.send(null);
Will basically do the entire thing, besides factoring it into existing code.