I want to have a random quote at the bottom of several HTML files that is read from a "Master List". To do this I have done as follows
I have a file called array.js which contains the following...
var r_text = new Array ();
r_text = "Some text";
r_text = "More text";
r_text = "Final text";
var i = Math.round(50*Math.random());
var quote = (r_text[i]);
Then in the HTML file I have...
--Stuff in body--
But this does not print anything on the screen. Can anyone please point me in the direction of where I'm stuffing this up.
Thanks for your help.