Unofficial Tips and Tutorials for Homestead SiteBuilder™ Users  
Fortune Cookie Scripts
adapted from Quotes Script
by Bravenet

 

Home - Tips & Tutorials - JavaScript Demos - Java Applet Demos - Resources - Search - Contact

Download the zip file of all 10 fortune cookie scripts on this page. Includes the instruction page.

Or copy-and-paste the scripts into NotePad or similar and save to your computer's documents folder. Remember to copy only from the <script> to the </script> tags if applying this directly to your web page. Otherwise you can copy all 10 scripts to one text file, then choose any script to use on your page.

1)

<script>
//fcs1
var Quotation=new Array()
Quotation[0] = "You will discover the truth in time.";
Quotation[1] = "Remember to share good fortune as well as bad with your friends.";
Quotation[2] = "You should be able to make money and hold on to it.";
Quotation[3] = "A good time to start something new.";
Quotation[4] = "A handful of patience is worth more than a bushel of brains.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
document.write(Quotation[whichQuotation]);}
</script>

2)

<script>
//fcs2
var Quotation=new Array() Quotation[0] = "You are heading for a land of sunshine.";
Quotation[1] = "Consolidate rather than expand business projects in the near future.";
Quotation[2] = "You have a reputation for being straightforward and honest.";
Quotation[3] = "A friend asks only for your time not your money.";
Quotation[4] = "There is a true and sincere friendship between you both.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
document.write(Quotation[whichQuotation]);}
</script>

 3)

<script>
//fcs3
var Quotation=new Array() Quotation[0] = "Don't let unexpected situations throw you";
Quotation[1] = "You are very expressive and positive in word, act and feeling.";
Quotation[2] = "You will soon be crossing the great waters.";
Quotation[3] = "You are the master of every situation.";
Quotation[4] = "You will win success in whatever you adopt.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
document.write(Quotation[whichQuotation]);}
</script>

4)

<script>
//fcs4
var Quotation=new Array() Quotation[0] = "A thrilling time is in your immediate future.";
Quotation[1] = "You are going to have a very comfortable old age.";
Quotation[2] = "You never hesitate to tackle the most difficult problems.";
Quotation[3] = "Your home is a pleasant place from which you draw happiness.";
Quotation[4] = "
If your desires are not extravagant, they will be granted.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
document.write(Quotation[whichQuotation]);}
</script>

5)

<script>
//fcs5
var Quotation=new Array() Quotation[0] = "The only happiness in life is to love and be loved.";
Quotation[1] = "If you follow someone else, you are ignoring your own path.";
Quotation[2] = "Your hidden creative talents will soon be revealed.";
Quotation[3] = "The hardest part of life is remembering to enjoy it.";
Quotation[4] = "Your warmth encourages honesty at home.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
document.write(Quotation[whichQuotation]);}
</script>

6)

<script>
//fcs6
var Quotation=new Array() Quotation[0] = "If you continually give you will continually have.";
Quotation[1] = "
Use your charm and personality to your advantage.";
Quotation[2] = "
Commit to what you feel in your heart.";
Quotation[3] = "
The key to happiness is having dreams.";
Quotation[4] = "
Put your ingenuity to work in anything you're doing.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
document.write(Quotation[whichQuotation]);}
</script>

7)

<script>
//fcs7
var Quotation=new Array() Quotation[0] = "
Listen not to vain words of empty tongue.";
Quotation[1] = "
You have a natural grace and great consideration for others.";
Quotation[2] = "
Endurance and persistence will be rewarded.";
Quotation[3] = "
You are going to pass a difficult test.";
Quotation[4] = "
Generosity and perfection are your everlasting goals.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
document.write(Quotation[whichQuotation]);}
</script>

8)

<script>
//fcs8
var Quotation=new Array() Quotation[0] = "
Feel compassion for all life and give knowledge that you have.";
Quotation[1] = "
Understand your personal power and use it to your advantage.";
Quotation[2] = "
If you're not rejected at least three times a week, you're not really trying.";
Quotation[3] = "
You will be fortunate in the opportunities presented to you.";
Quotation[4] = "
Remember, being happy is not always being perfect.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
document.write(Quotation[whichQuotation]);}
</script>

9)

<script>
//fcs9
var Quotation=new Array() Quotation[0] = "
Make one person smile today.";
Quotation[1] = "
Keep true to the dreams of your youth.";
Quotation[2] = "
You will have good luck and overcome many hardships.";
Quotation[3] = "
Apply yourself to the basics and progress will follow.";
Quotation[4] = "
Sometimes the wisest person is dressed in the rudest clothing.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
document.write(Quotation[whichQuotation]);}
</script>

10)

<script>
//fcs10
var Quotation=new Array() Quotation[0] = "
Your generosity will pay off.";
Quotation[1] = "
Time and patience are called for. Many surprises await you!";
Quotation[2] = "
You are a dreamer and your thinking is inspirational.";
Quotation[3] = "
Avert misunderstandings by calm, poise and balance.";
Quotation[4] = "
You are strong and brave. Use your strength to pull through.";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
document.write(Quotation[whichQuotation]);}
</script>

Home - Tips & Tutorials - JavaScript Demos - Java Applet Demos - Resources - Search - Contact
Webpage graphics by Arride Graphics

Copyright © 2000-2006 The Rambling Tutor and JanetS  All Rights Reserved
All other copyrights and trademarks are the property of their respective owners.


Plus 260 visitors before joining Site Meter on June 11, 2001

Hosted by www.Geocities.ws

1