belotte
05-30-2003, 01:13 AM
I have a new question. I am using this script to post random quotes on my web page. Right now it’ll only accommodate a specific number. It seems to me that to change the number of quotes I would have to change either the 1 or the 5, or both. The problem is I can’t seem to figure out which one and how. Any ideas? The cod is as follows.
Thank you so much,
Richard Belotte
<!-- Begin
var a = Math.random() + ""
var rand1 = a.charAt(5)
quotes = new Array
quotes[1] = "The object of art is to give life a shape. -Jean Anouilh"
quotes[2] = "Sometimes I've believed as many as six impossible things before breakfast. -Lewis Carroll."
quotes[3] = "Hitch your wagon to a star. -Ralph Waldo Emerson"
quotes[4] = "We should not let our fears hold us back from pursuing our hopes. -John F. Kennedy"
quotes[5] = "Not failure, but low aim is a crime. -James Russell Lowell"
quotes[6] = "Art is not a mirror to reflect the world, but a hammer with which to shape it. -Vladimir Mayakovski"
quotes[7] = "Without art, the crudeness of reality would make the world unbearable. -George Bernard Shaw"
quotes[8] = "Art is the only way to run away without leaving home. -Twyla Tharp"
quotes[9] = "Art imitates nature in this: not to dare is to dwindle. -John Updike"
quotes[0] = "Success follows doing what you want to do. There is no other way to be successful. -Malcolm Forbs"
var quote = quotes[rand1]
document.write(quote);
// End -->
Thank you so much,
Richard Belotte
<!-- Begin
var a = Math.random() + ""
var rand1 = a.charAt(5)
quotes = new Array
quotes[1] = "The object of art is to give life a shape. -Jean Anouilh"
quotes[2] = "Sometimes I've believed as many as six impossible things before breakfast. -Lewis Carroll."
quotes[3] = "Hitch your wagon to a star. -Ralph Waldo Emerson"
quotes[4] = "We should not let our fears hold us back from pursuing our hopes. -John F. Kennedy"
quotes[5] = "Not failure, but low aim is a crime. -James Russell Lowell"
quotes[6] = "Art is not a mirror to reflect the world, but a hammer with which to shape it. -Vladimir Mayakovski"
quotes[7] = "Without art, the crudeness of reality would make the world unbearable. -George Bernard Shaw"
quotes[8] = "Art is the only way to run away without leaving home. -Twyla Tharp"
quotes[9] = "Art imitates nature in this: not to dare is to dwindle. -John Updike"
quotes[0] = "Success follows doing what you want to do. There is no other way to be successful. -Malcolm Forbs"
var quote = quotes[rand1]
document.write(quote);
// End -->