I have minimal knowlege of javascript so please be kind. I have created a very basic javascript that show a random quote from a politician, who said it, when, and it provides a link to the source of the quote. It looks something like that:
/the quote
var n_text = new Array ();
/the link
var n_lnkk = new Array ();
/the party member that said it and when
var n_part = new Array ();
n_text [1]="blah";
n_text [2]="blah blah";
n_text [3]="blah blah blah";
etc
n_lnkk [1]="http://...";
n_lnkk [2]="http://...";
n_lnkk [3]="http://...";
etc
n_part [1]="whosaidit1";
n_part [2]="whosaidit2";
n_part [3]="whosaidit3";
etc
Then I use math.random and document.write to show a random quote and show a twitter button so that people can tweet it, and a refresh button to show another random quote like this:
blah blah http://... whosaidit and when
I know document.write is not the best way to do it but I have tried other methods and they didn't work with the twitter button so that will have to wait untill I find a solution for it but it is not the question I have right now.
The problem is that this script has become huge, (almost 1000 quotes) so blogger doesn't allow me to add any more text into it. Is there a way to put the data in an external file somewhere and have the javascript read it and display the results and still keep it relatively simple since I have very basic knowledge of jscript or html? Please keep in mind that I am using blogger so I have limited options, but I think an external file with just the data would work