Modify the quotes inside "ultrarandom.js" to be the quotes you want.
Add the following code on your website where you would like the quote generator to appear:
Code: Select all
<script language="javascript" src="ultrarandom.js"></script>
<form name="quoteForm">
<textarea wrap="virtual" name="quoteHere" rows="4" cols="60">
Random Quotes Java Script
Thanks to Brandon Checketts
http://www.brandonchecketts.com/
</textarea><br />
<input type=button value="Previous" onClick="prevQuote();" />
<input type=button value="Next" onClick="nextQuote();" />
<input type=button value="Random" onClick="randQuote();" />
</form>
Code: Select all
numQuotes=159;
quoteArray = new Array(numQuotes);
quoteArray[0]="\"Great spirits have always encountered violent opposition from mediocre minds.\" -Albert Einstein";
quoteArray[1]="\"It's noble to lose honour to save the lives of men than it's to gain honour by taking them.\" -David Borenstein"
quoteArray[2]="\"Freedom is that instant between when someone tells you to do something and when decide how to respond.\" -Jeffery Borenstein"
quoteArray[3]="\"To live a pure unselfish life, one must count nothing as one's own in the midst of abundance.\" -Buddha"
quoteArray[4]="\"We need more people who specialize in the impossible.\" -Unknown"
quoteArray[5]="\"It is not enough to have a good mind; the main thing is to use it well.\" -Rene Descartes"
quoteArray[6]="\"Fall seven times, stand up eight.\" -Japanese Proverb"
quoteArray[7]="\"Every problem has a gift for you in its hands.\" -Richard Bach"
quoteArray[8]="\"Enjoy life. There's plenty of time to be dead.\" -Unknown"
quoteArray[9]="\"One's mind, once stretched by a new idea, never regain sits original dimensions.\" -Oliver Wendel Holmes"
quoteArray[10]="\"Nothing is so strong as gentleness and nothing is so gentle as real strength.\" -Ralph W. Sockman"
quoteArray[11]="\"Wisdom begins in wonder.\" -Socrates"
quoteArray[12]="\"Live out of your imagination, not your history.\" -Stephen Covey"
quoteArray[13]="\"People only see what they are prepared to see.\" -Ralph Waldo Emerson"
quoteArray[14]="\"Thinking: The talking of the soul with itself.\" -Plato"
quoteArray[15]="\"Liberty means responsibility. That is why most mendread it.\" -George Bernard Shaw"
quoteArray[16]="\"The only thing necessary for the triumph of evil is for good men to do nothing.\" -Edmund Burke"
quoteArray[17]="\"To accomplish great things, we must not only act, but also dream; not only plan, but also believe.\" -Anatole France"
quoteArray[18]="\"You must do the things you think you cannot do.\" -Eleanor Roosevelt"
quoteArray[19]="\"You get the best out of others when you give the best of yourself.\" -Harry Firestone"
quoteArray[20]="\"Real riches are the riches possessed inside.\" -B. C. Forbes"
quoteArray[21]="\"Choose your friends by their character and your socks by their colour. Choosing your socks by their character makes no sense, and choosing your friends by their colour is unthinkable.\" -Unknown"
quoteArray[22]="\"You must be the change you wish to see in the world.\" -Gandhi"
quoteArray[23]="\"When you get to the end of your rope, tie a knot and hang on.\" -Franklin D. Roosevelt"
quoteArray[24]="\"What you do speaks so loudly that I cannot hear what you say.\" -Ralph Waldo Emerson"
quoteArray[25]="\"Keep away from people who try to belittle your ambitions. Small people always do that, but the really great make you feel that you, too, can become great.\" -Mark Twain"
quoteArray[26]="\"Use what talent you possess: the woods would be very silent if no birds sang except those that sang best.\" -Henry Van Dyke"
quoteArray[27]="\"Where there is great love, there are always wishes.\" -Willa Cather"
quoteArray[28]="\"The supreme happiness in life is the conviction that we are loved.\" -Victor Hugo"
quoteArray[29]="\"You don't get harmony when everybody sings the same note.\" -Doug Floyd"
quoteArray[30]="\"When you are content to be simply yourself and don't compare or compete, everybody will respect you.\" -Lao-Tzu"
quoteArray[31]="\"Fear less, hope more; Whine less, breathe more; Talk less, say more; Hate less, love more; And all good things are yours.\" -Swedish Proverb"
quoteArray[32]="\"Learn from yesterday, live for today, hope for tomorrow.\" -Unknown"
quoteArray[33]="\"People are just as happy as they make up their minds to be\" -Abraham Lincoln"
quoteArray[34]="\"Be not afraid of greatness: some are born great, some achieve greatness, and some have greatness thrust upon them.\" -William Shakespeare"
quoteArray[35]="\"Do what you can, with what you have, where you are.\" -Theodore Roosevelt"
quoteArray[36]="\"He who dies with the most toys is, nonetheless, still dead.\" -Unknown"
quoteArray[37]="\"Be true to your work, your word, and your friend.\" -Henry David Thoreau"
quoteArray[38]="\"Without a struggle, there can be no progress.\" -Frederick Douglass"
quoteArray[39]="\"Problems are only opportunities in work clothes.\" -Henry Kaiser"
quoteArray[40]="\"If you don't like something, change it. If you can't change it, change your attitude. Don't complain.\" -Maya Angelou"
quoteArray[41]="\"Dreams are the touchstones of our character.\" -Henry David Thoreau"
quoteArray[42]="\"Those who do not remember the past are condemned to repeat it.\" -George Santayana"
quoteArray[43]="\"May you live every day of your life.\" -Jonathan Swift"
quoteArray[44]="\"Without change, something sleeps inside us, and seldom awakens. The sleeper must awaken.\" -Frank Herbert"
quoteArray[45]="\"Every problem has a gift for you in its hands.\" -Richard Bach"
quoteArray[46]="\"An insincere and evil friend is more to be feared than a wild beast; a wild beast may wound your body, but an evil friend will wound your mind.\" -Buddha"
quoteArray[47]="\"Look at everything as though you were seeing it for the first time or the last time. Then your time on earth will be filled with glory.\" -Betty Smith"
quoteArray[48]="\"Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.\" -Buddha"
quoteArray[49]="\"The Lord is my light, and my salvation; whom shall I fear?\" -Psalm 27"
quoteArray[50]="\"Don't be afraid to take a big step. You can't cross a chasm in two small jumps.\" -David Lloyd George"
quoteArray[51]="\"Tomorrow is a new day; you shall begin it serenely and with too high a spirit to be encumbered with your old nonsense.\" -Ralph Waldo Emerson"
quoteArray[52]="\"Minds are like parachutes; they work best when open.\" -Lord Thomas Dewar"
quoteArray[53]="\"One thing you can't recycle is wasted time.\" -Anonymous"
quoteArray[54]="\"The purpose of life is a life of purpose.\" -Robert Byrne"
quoteArray[55]="\"It is good to have an end to journey toward, but it is the journey that matters in the end.\" -Ursula K. LeGuin"
quoteArray[56]="\"It is one of the most beautiful compensations of life, that no man can sincerely try to help another without helping himself.\" -Ralph Waldo Emerson"
quoteArray[57]="\"The question is not whether we will die, but how we will live.\" -Joan Borysenko"
quoteArray[58]="\"What lies behind us and what lies before us are tiny matters compared to what lies within us.\" -Oliver Wendell Holmes"
quoteArray[59]="\"We are what we repeatedly do. Excellence, then is not an act, but a habit.\" -Aristotle"
quoteArray[60]="\"There are no mistakes, no coincidences. All events are blessings given to us to learn from.\" -Dr. Elisabeth Kubler-Ross"
quoteArray[61]="\"It is only with the heart that one can see rightly; what is essential is invisible to the eye.\" -Antoine De Saint-Exupery"
quoteArray[62]="\"You live through the darkness from what you learned in the light.\" -Hope MacDonald"
quoteArray[63]="\"He who knows others is wise. He who knows himself is enlightened.\" -Anonymous"
quoteArray[64]="\"Never be bullied into silence. Never allow yourself to be made a victim. Accept no one's definition of your life; define yourself.\" -Harvey Fierstein"
quoteArray[65]="\"Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that.\" -Martin Luther King, Jr."
quoteArray[66]="\"The important thing is not to stop questioning.\" -Albert Einstein"
quoteArray[67]="\"In three words I can sum up everything I've learned about life: it goes on.\" -Robert Frost"
quoteArray[68]="\"The journey is the reward.\" -Tao Saying"
quoteArray[69]="\"Never look down on anybody unless you helping him up.\" -Jesse Jackson"
quoteArray[70]="\Knowing is not enough; we must apply. Willing is not enough; we must do.\" -Goethe"
quoteArray[71]="\"The less you open your heart to others, the more yourheart suffers.\" -Deepak Chopra"
quoteArray[72]="\"There are no shortcuts to any place worth going.\" -Unknown"
quoteArray[73]="\"I learned that it is the weak who are cruel, and that gentleness is to be expected only from the strong.\" -Leo Rosten"
quoteArray[74]="\"Looking back, I have this to regret, that too often when I loved, I did not say so.\" -David Grayson"
quoteArray[75]="\"He who angers you conquers you.\" -Elizabeth Kenny"
quoteArray[76]="\"Tell me who admires you and loves you, and I will tell you who you are.\" -Charles Augustin Sainte-Beauve"
quoteArray[77]="\"The last of the human freedoms is to choose one's attitudes.\" -Victor Frank"
quoteArray[78]="\"No bird soars too high if he soars with his own wings.\" -William Blake"
quoteArray[79]="\"Man is free at the moment he wishes to be.\" -Voltaire"
quoteArray[80]="\"We must use time wisely and forever realize that the time is always ripe to do right.\" -Nelson Mendela"
quoteArray[81]="\"Nurture your mind with great thoughts.\" -Benjamin Disraeli"
quoteArray[82]="\"Teachers open the door, but you must enter by yourself.\" -Chinese Proverb"
quoteArray[83]="\"If you find it in your heart to care for somebody else, you will have succeeded.\" -Maya Angelou"
quoteArray[84]="\"You, yourself, as much as anybody in the entire universe, deserve your love and affection.\" -Buddha"
quoteArray[85]="\"Shoot for the moon. Even if you miss, you'll land among the stars.\" -Les Brown"
quoteArray[86]="\"The only way to have a friend is to be one.\" -Ralph Waldo Emerson"
quoteArray[87]="\"This life is worth living, we can say, since it is what we make it.\" -William James"
quoteArray[88]="\"A friend is one who knows you and loves you just the same.\" -Elbert Hubbard"
quoteArray[89]="\"People who fight fire with fire usually end up with ashes.\" -Abigail Van Buren"
quoteArray[90]="\"Knowledge is power.\" -Francis Bacon"
quoteArray[91]="\"Nothing great was ever achieved without enthusiasm.\" -Ralph Waldo Emerson"
quoteArray[92]="\"Every exit is an entry somewhere.\" -Tom Stoppard"
quoteArray[93]="\"It's always too early to quit.\" -Norman Vincent Pearle"
quoteArray[94]="\"A person who aims at nothing is sure to hit it.\" -Anonymous"
quoteArray[95]="\"A journey of a thousand miles begins with a single step.\" -Confucius"
quoteArray[96]="\"This above all; to thine own self be true.\" -William Shakespeare"
quoteArray[97]="\"Friends are treasures.\" -Horace Bruns"
quoteArray[98]="\"We never know the worth of water 'til the well is dry.\" -English Proverb"
quoteArray[99]="\"A thief believes everybody steals.\" -E.W. Howe"
quoteArray[100]="\"It takes a great man to be a good listener.\" -Calvin Coolidge"
quoteArray[101]="\"If you love something, let it go. If it comes back it's yours. If it doesn't, it never really was in the first place.\" -Unknown"
quoteArray[102]="\"It is a man's own mind, not his enemy or foe, that lures him to evil ways.\" -Buddha"
quoteArray[103]="\"Assumptions allow the best in life to pass you by.\" -John Sales"
quoteArray[104]="\"Live free or die.\" -New Hampshire"
quoteArray[105]="\"Fall seven times, stand up eight.\" -Japanese Proverb"
quoteArray[106]="\"Courage is not the absence of fear, but rather the judgement that something else is more important than fear.\" -Ambrose Redmoon"
quoteArray[107]="\"Live as if your were to die tomorrow. Learn as if you were to live forever.\" -Gandhi"
quoteArray[108]="\"Here is the test to find whether your mission on Earth is finished: if you're alive, it isn't.\" -Richard Bach"
quoteArray[109]="\"Fear is that little darkroom where negatives are developed.\" -Michael Pritchard"
quoteArray[110]="\"All life is an experiment.\" -Ralph Waldo Emerson"
quoteArray[111]="\"Men are born to succeed, not to fail.\" -Henry David Thoreau"
quoteArray[112]="\"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world.\" -Albert Einstein"
quoteArray[113]="\"The sweetest of all sounds is praise.\" -Xenophon"
quoteArray[114]="\"Believe that life is worth living and your belief will help create the fact.\" -William James"
quoteArray[115]="\"The most wasted day of all is that during which we have not laughed.\" -Sebastian R. N. Chamfort"
quoteArray[116]="\"When one door of happiness closes, another opens; but often we look so long at the closed door that we do not see the one which has opened for us.\" -Helen Keller"
quoteArray[117]="\"Write the bad things that are done to you in sand, but write the good things that happen to you on a piece of marble.\" -Arabic Parable"
quoteArray[118]="\"The only real mistake is the one from which we learn nothing.\" -John Powell"
quoteArray[119]="\"You are never given a wish without also being given the power to make it come true. You may have to work for it, however.\" -Richard Bach"
quoteArray[120]="\"We can try to avoid making choices by doing nothing, but even that is a decision.\" -Gary Collins"
quoteArray[121]="\"A good head and a good heart are always a formidable combination.\" -Nelson Mandela"
quoteArray[122]="\"Eighty percent of success is showing up.\" -Woody Allen"
quoteArray[123]="\"The harder you work, the luckier you get.\" -McAlexander"
quoteArray[124]="\"No one can make you feel inferior without your consent.\" -Eleanor Roosevelt"
quoteArray[125]="\"The brighter you are, the more you have to learn.\" -Don Herold"
quoteArray[126]="\"Even if you are on the right track, you'll get run over if you just sit there.\" -Will Rogers"
quoteArray[127]="\"The expert at anything was once a beginner.\" -Hayes"
quoteArray[128]="\"Somewhere, something incredible is waiting to be known.\" -Carl Sagan"
quoteArray[129]="\"Laughter is the shortest distance between two people.\" -Victor Borge"
quoteArray[130]="\"Hold fast to dreams, for if dreams die, life is a broken bid that cannot fly.\" -Langston Hughes"
quoteArray[131]="\"We are what we think. All that we are arises with our thoughts. With our thoughts, we make the world.\" -Buddha"
quoteArray[132]="\"Those who stand for nothing fall for anything.\" -Alexander Hamilton"
quoteArray[133]="\"It is not length of life, but depth of life.\" -Ralph Waldo Emerson"
quoteArray[134]="\"Just when you think that a person is just a backdrop for the rest of the universe, watch them and see that they laugh, they cry, they tell jokes ... they're just friends waiting to be made.\" -Jeffery Borenstein"
quoteArray[135]="\"Everything has been figured out, except how to live.\" -Jean-Paul Sartre"
quoteArray[136]="\"Listen or thy tongue will keep thee deaf.\" -American Indian Proverb"
quoteArray[137]="\"The basis of optimism is sheer terror.\" -Oscar Wilde"
quoteArray[138]="\"If you can imagine it, You can achieve it. If you can dream it, You can become it.\" -William Arthur Ward"
quoteArray[139]="\"It is better to debate a question without settling it than to settle a question without debating it.\" -Jeseph Joubert"
quoteArray[140]="\"Spoon feeding in the long run teaches us nothing but the shape of the spoon.\" -E. M. Forster"
quoteArray[141]="\"The most beautiful thing we can experience is the mysterious.\" -Albert Einstein"
quoteArray[142]="\"One should not stand at the foot of a sick person's bed, because that place is reserved for the guardian angel.\" -Jewish Folk Saying"
quoteArray[143]="\"Some people weave burlap into the fabric of our lives, and some weave gold thread. Both contribute to make the whole picture beautiful and unique.\" -Unknown"
quoteArray[144]="\"Happiness is a choice that requires effort at times.\" -Unknown"
quoteArray[145]="\"Everyone is kneaded out of the same dough but not baked in the same oven.\" -Yiddish Proverb"
quoteArray[146]="\"Consistency is the last resort of the unimaginative.\" -Oscar Wilde"
quoteArray[147]="\"To confine our attention to terrestrial matters would be to limit the human spirit.\" -Stephen Hawking"
quoteArray[148]="\"He is able who thinks he is able.\" -Buddha"
quoteArray[149]="\"If you want rainbows, you have to put up with the rain.\" -Dolly Parton"
quoteArray[150]="\"When I find myself fading, I close my eyes and realize my friends are my energy.\" -Unknown"
quoteArray[151]="\"It was when I found out I could make mistakes that I knew I was on to something.\" -Ornette Coleman"
quoteArray[152]="\"The world is so fast that there are days when the person who says it can't be done is interrupted by the person who is doing it.\" -Unknown"
quoteArray[153]="\"The future belongs to those who believe in the beauty of their dreams.\" -Eleanor Roosevelt"
quoteArray[154]="\"Diamonds are nothing more than chunks of coal that stuck to their jobs.\" -Malcolm Forbes"
quoteArray[155]="\"If being an egomaniac means I believe in what I do and in my art or music, then in that respect you can call me that ... I believe in what I do, and I'll say it.\" -John Lennon"
quoteArray[156]="\"Destiny is not a matter of chance, it is a matter of choice; it is not a thing to be waited for, it is a thing to be achieved.\" -William Jennings Bryan"
quoteArray[157]="\"The mind is not a vessel to be filled but a fire to be kindled.\" -Plutarch"
quoteArray[158]="\"You will find as you look back upon your life that the moments when you have truly lived are the moments when you have done things in the spirit of love.\" -Henry Drummond"
quoteArray[159]="\"It is not for him to pride himself who love his own country, but rather for him who love the whole world. The earth is but one country and mankind its citizens.\" -Baha'u'llah"
quoteShowing=-1;
function nextQuote()
{
// restart at 0 if done
if (quoteShowing >= numQuotes) quoteShowing=-1;
quoteShowing++;
// assign the value in the textbox to the new quote
document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}
function prevQuote()
{
// restart at end if on 0
if (quoteShowing <= 0) quoteShowing=numQuotes+1;
quoteShowing--;
document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}
function randQuote()
{
// Make sure you don't show the same quote 2x in a row
prevQuoteShowing = quoteShowing;
while(quoteShowing == prevQuoteShowing)
quoteShowing = Math.ceil(Math.random() * numQuotes);
document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}