Planet Shake
You are watching the site as a guest to see everything that gets offered register for free or log in....or take a look around on the few things that you can see as a guest.....

Planet Shake

Discover Your World Here !
HomeHome  PortalPortal  GalleryGallery  FAQFAQ  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 

 Love Calculator Javascript & Random Quote Javascript

Go down 

Posts : 67
Points : 3420
Reputation : 2
Join date : 2009-02-19
Age : 26
Location : Laguna

Planet Shake
huo: 4

PostSubject: Love Calculator Javascript & Random Quote Javascript   Fri Feb 20, 2009 12:22 am

Random Quote Javascript

<script LANGUAGE="Javascript"> <!-- Distributed by
var howMany = 50 var quote = new Array(howMany+1) quote[0]="A good woman
to a man is like money in the bank." quote[1]="God loved the birds and
invented trees. Man loved the birds and invented cages." quote[2]="The
words that enlighten the soul are more precious than jewels." quote[3]="Prepare
your mind to receive the best that life has to offer." quote[4]="In
order to be walked on, you have to be lying down." quote[5]="Education
is the power to think clearly, the power to act well in the world's work, and
the power to appreciate life." quote[6]="No one can make you feel inferior
without your consent." quote[7]="A person who aims at nothing is sure
to hit it." quote[8]="Shoot for the moon. Even if you miss, you'll land
among the stars." quote[9]="No bird soars too high if he soars with
his own wings." quote[10]="You can't build a reputation on what you're
going to do." quote[11]="An invasion of armies can be resisted, but
not an idea whose time has come." quote[12]="The people who oppose your
ideas are inevitably those who represent the established order that your ideas
will upset." quote[13]="You don't love a woman because she is beautiful,
but she is beautiful because you love her." quote[14]="Love is the immortal
flow of energy that nourishes, extends and preserves. Its eternal goal is life."
quote[15]="Sometimes the heart sees what is invisible to the eye." quote[16]="Woe
to the man whose heart has not learned while young to hope, to love - and to put
its trust in life." quote[17]="Learn from yesterday, live for today,
hope for tomorrow." quote[18]="Enjoy life. There's plenty of time to
be dead." quote[19]="Here is the test to find whether your mission on
Earth is finished: if you're alive, it isn't." quote[20]="The question
is not whether we will die, but how we will live." quote[21]="Never
be bullied into silence. Never allow yourself to be made a victim. Accept no one's
definition of your life; define yourself." quote[22]="Believe that life
is worth living and your belief will help create the fact." quote[23]="Live
every day as if it were your last, because one of these days, it will be."
quote[24]="Most people would rather be certain they're miserable, than risk
being happy." quote[25]="To live a pure unselfish life, one must count
nothing as one's own in the midst of abundance." quote[26]="The grand
essentials of happiness are: something to do, something to love, and something
to hope for." quote[27]="Nobody really cares if you're miserable, so
you might as well be happy." quote[28]="Great ability develops and reveals
itself increasingly with every new assignment." quote[29]="If a man
deceives me once, shame on him; if he deceives me twice, shame on me." quote[30]="Remember:
It is 10 times harder to command the ear than to catch the eye." quote[31]="There
are many paths to the top of the mountain, but the view is always the same."
quote[32]="If you can't win, make the fellow ahead of you break the record."
quote[33]="If you really put a small value upon yourself, rest assured that
the world will not raise your price." quote[34]="Choose the life that
is most useful, and habit will make it the most agreeable." quote[35]="Always
behave as if nothing had happened, no matter what has happened." quote[36]="When
fate hands us a lemon, let's try to make lemonade." quote[37]="Reflect
on your present blessings, of which every man has many, not on your past misfortunes,
of which all men have some." quote[38]="Don't be afraid to take a big
step when one is indicated. You can't cross a chasm in two small steps."
quote[39]="When someone does something good, Applaud! You will make two people
happy." quote[40]="Duty is the sublimest word in our language. Do your
duty in all things. You cannot do more. You should never do less." quote[41]="Always
remember others may hate you but those who hate you don't win unless you hate
them. And then you destroy yourself." quote[42]="Do not wait for extrordinary
circumstances to do good; try to use ordinary situations." quote[43]="Whenever
you are asked if you can do a job, tell 'em, "Certainly, I can!" Then
get busy and find out how to do it." quote[44]="Remember that there
is nothing stable in human affairs; therefore avoid undue elation in prosperity,
or undue depression in adversity." quote[45]="Learn to say 'No'; it
will be of more use to you than to be able to read Latin." quote[46]="Let
us not be too particular; it is better to have old secondhand diamonds than none
at all." quote[47]="Never believe all you hear. Always believe in what
you say." quote[48]="Wise men learn more from fools than fools from
the wise." quote[49]="The heart of a fool is in his mouth, but the mouth
of a wise man is in his heart." quote[50]="The poor man is not he who
is without a cent, but he who is without a dream." function rndnumber(){
var randscript = -1 while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1)) } return randscript } quo = rndnumber()
quox = quote[quo] document.write(quox) // End script--> </script> </CENTER>

Love Calculator Javascript

LANGUAGE="Javascript"> <!-- Distributed by
Begin function calc() { first = document.loveform.name1.value.toUpperCase(); firstlength
= document.loveform.name1.value.length; second = document.loveform.name2.value.toUpperCase();
secondlength = document.loveform.name2.value.length; var LoveCount=0; for (Count=0;
Count < firstlength; Count++) { letter1=first.substring(Count,Count+1); if
(letter1=='L') LoveCount+=2; if (letter1=='O') LoveCount+=2; if (letter1=='V')
LoveCount+=2; if (letter1=='E') LoveCount+=2; if (letter1=='Y') LoveCount+=3;
if (letter1=='O') LoveCount+=1; if (letter1=='U') LoveCount+=3; } for (Count=0;
Count < secondlength; Count++) { letter2=second.substring(Count,Count+1); if
(letter2=='L') LoveCount+=2; if (letter2=='O') LoveCount+=2; if (letter2=='V')
LoveCount+=2; if (letter2=='E') LoveCount+=2; if (letter2=='Y') LoveCount+=3;
if (letter2=='O') LoveCount+=1; if (letter2=='U') LoveCount+=3; } amount=0; if
(LoveCount> 0) amount= 5-((firstlength+secondlength)/2) if (LoveCount> 2)
amount= 10-((firstlength+secondlength)/2) if (LoveCount> 4) amount= 20-((firstlength+secondlength)/2)
if (LoveCount> 6) amount= 30-((firstlength+secondlength)/2) if (LoveCount>
8) amount= 40-((firstlength+secondlength)/2) if (LoveCount>10) amount= 50-((firstlength+secondlength)/2)
if (LoveCount>12) amount= 60-((firstlength+secondlength)/2) if (LoveCount>14)
amount= 70-((firstlength+secondlength)/2) if (LoveCount>16) amount= 80-((firstlength+secondlength)/2)
if (LoveCount>18) amount= 90-((firstlength+secondlength)/2) if (LoveCount>20)
amount=100-((firstlength+secondlength)/2) if (LoveCount>22) amount=110-((firstlength+secondlength)/2)
if (firstlength==0 || secondlength==0) amount= "Err"; if (amount <
0) amount= 0; if (amount >99) amount=99; document.loveform.output.value=amount+"%";
} // End --> </script>

<form name=loveform> <input
value="Bill Clinton" name="name1" type="text" size="20">
+ <input value="Monica Lewinsky" name="name2" type="text"
size="20"> = <input value="" name="output"
type="text" size="6"> <br> <br> <input value="Calculate!"
name="calculate" type="button" value="calculate"
onclick="calc()"> </form>
Back to top Go down
View user profile
Love Calculator Javascript & Random Quote Javascript
Back to top 
Page 1 of 1
 Similar topics
» Test javascript Calendar
» Help required with JavaScript and Selenese Parameter
» Javascript Array
» Where do you save javascript
» how to record a test case in javascript

Permissions in this forum:You cannot reply to topics in this forum
Planet Shake :: Tutorials :: Scripting-
Jump to:  
Free forum | © phpBB | Free forum support | Contact | Report an abuse | Free forum