Web Analytics Made Easy -
StatCounter Error: Running two javascripts at once - CodingForum

Announcement

Collapse
No announcement yet.

Error: Running two javascripts at once

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error: Running two javascripts at once

    For some reason each script works fine on its own, but when I post the two scripts together I can't get it to work.

    Where is my error and how can I fix it?

    SCRIPT 1 IS A TYPE OF IMAGE NAVIGATION. You can find a working example of it at www.LeadershipMA.com/test3.shtml

    Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    var linktext=new Array()
    linktext[0]='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b><center>Little Ninjas</center></b><br><img src="http://www.leadershipma.com/studentarea/icon/ninja.gif"></font></td></tr></table>'
    linktext[1]='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b><center>Youth Martial Arts</center></b></font></td></tr></table>'
    linktext[2]='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b><center>Adult Martial Arts</center></b></font></td></tr></table>'
    linktext[3]='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b><center>Cardio Kickboxing</center></b></font></td></tr></table>'
    var ns6=document.getElementById&&!document.all
    var ie=document.all
    function show_text(thetext, whichdiv){
    if (ie) eval("document.all."+whichdiv).innerHTML=linktext[thetext]
    else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext] }
    function reset(whichdiv){
    if (ie) eval("document.all."+whichdiv).innerHTML='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="0" cellspacing="4"><tr><td valign="top"><font face="arial" size="4"><b>plAce your cursor over the links on the left for a description to appear here.<p>click on the link to visit the page</b></font></td></tr></table>'
    else if (ns6) document.getElementById(whichdiv).innerHTML='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>pLace your cursor over the links on the left for a description to appear here.<p>click on the link to visit the page</b></font></td></tr></table>'}
    //  End -->
    </SCRIPT>
    <table border="0" width="370" bgcolor="green" cellpadding="0" cellspacing="0" align="center">
    <tr><td>
    <table border="0" bgcolor="green" width="370" cellpadding="0" cellspacing="0">
    <tr><td>
    <table border="0" width="160" bgcolor="#FFFFFF" cellpadding="4" cellspacing="0">
    <tr>
      <td onclick="window.location='http://javascript.internet.com'" onmouseover="bgColor='#FF0000'; show_text(0,'div1')" onmouseout="bgColor='#FFFFFF'; reset('div1')" style="cursor:pointer; cursor:hand"><img src="http://www.leadershipma.com/images/prog41.gif"></td>
      <td onclick="window.location='http://javascript.internet.com'" onMouseover="bgColor='#FF0000'; show_text(1,'div1')" onMouseout="bgColor='#FFFFFF'; reset('div1')" style="cursor:pointer; cursor:hand"><img src="http://www.leadershipma.com/images/prog31.gif"></td>
    </tr>
    <tr>
      <td onclick="window.location='http://javascript.internet.com'" onMouseover="bgColor='#FF0000'; show_text(2,'div1')" onMouseout="bgColor='#FFFFFF'; reset('div1')" style="cursor:pointer; cursor:hand"><img src="http://www.leadershipma.com/images/prog21.gif"></td>
      <td onclick="window.location='http://javascript.internet.com'" onMouseover="bgColor='#FF0000'; show_text(3,'div1')" onMouseout="bgColor='#FFFFFF'; reset('div1')" style="cursor:pointer; cursor:hand"><img src="http://www.leadershipma.com/images/prog11.gif"></td>
    </tr>
    </table>
    </td>
    <td>
    <span id="div1"><table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>Place your cursor over the links on the left for a description to appear here.<br><br>click on the link to visit the page </b></font></td></tr></table></span>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <center><form>
    <input type=button value="Win an iPod" style="background:FF0E0E; color:#FFFFFF; font-size:14pt; font-weight:bold; font-family: Verdana, Arial, Helvetica, sans-serif; border-color: #000000;" onClick="goToURL()">
    </form></center>
    SCRIPT 2 IS A WEEKLY QUOTATION SCRIPT. You can find a working example of it at www.LeadershipMA.com.


    Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function days_between(date1, date2) {
      // The number of milliseconds in one day
      var ONE_DAY = 1000 * 60 * 60 * 24
    
      // Convert both dates to milliseconds
      var date1_ms = date1.getTime()
      var date2_ms = date2.getTime()
    
      // Calculate the difference in milliseconds
      var difference_ms = Math.abs(date1_ms - date2_ms)
      
      // Convert back to days and return
      return Math.round((difference_ms/ONE_DAY)/7)
    }
    //  End -->
    </script>
    <SCRIPT LANGUAGE="JavaScript">
    
    <!-- Begin
    // Store the current date and time
    var current_date = new Date()
    
    // Store the date of the next New Year's Day
    var new_years_date = new Date()
    new_years_date.setYear(new_years_date.getFullYear() + 1)
    new_years_date.setMonth(0)
    new_years_date.setDate(1)
    
    // Call the days_between function
    var days_left = days_between(current_date, new_years_date)
    
    // Write the result to the page
    if (days_left == 0) {
      document.write("It has been said that a person may have ten years of experience, or one year of experience repeated ten times.<br>-Yukiso Yamamoto")
    }
    if (days_left == 1) {
      document.write("Gold metals aren't really made of gold. They're made of sweat, determination, and a hard-to-find alloy called guts.")
    }
    if (days_left == 2) {
      document.write("Nobody who ever gave his best regretted it.")
    }
    if (days_left == 3) {
      document.write("The only difference between ordinary and extraordinary is that little <i>extra</i>")
    }
    if (days_left == 4) {
      document.write("If you have someone equal in ability to me I will beat him every time because I will try harder.")
    }
    if (days_left == 5) {
      document.write("Without ambition one starts nothing. Without work one finishes nothing. The prize will not be sent to you. You have to win it.<br>-Ralph Waldo Emerson")
    }
    if (days_left == 6) {
      document.write("Dignity does not consist in possessing honors, but in deserving them. <br> -Aristotle")
    }
    if (days_left == 7) {
      document.write("The fearless are merely fearless, those who act in spite of their fear are truly brave.")
    }
    if (days_left == 8) {
      document.write("A minute's success pays the failure of years. <br>-Robert Browning")
    }
    if (days_left == 9) {
      document.write("Knowledge is potential; action is power.<br>-Anthony Robbins")
    }
    if (days_left == 10) {
      document.write("The only disability in life is a bad attitude.<br>-Scott Hamilton")
    }
    if (days_left == 11) {
      document.write("Never expect gratitude, but always express appreciation.<br>-unknown")
    }
    if (days_left == 12) {
      document.write("It isn't the mountain ahead that wears you out – it's the grain of sand in your shoe.<br>-Robert Service")
    }
    if (days_left == 13) {
      document.write("The object of education is to prepare the young to educate themselves throughout their lives.<br>-Robert Maynard Hutchins ")
    }
    if (days_left == 14) {
      document.write("I am always ready to learn, but I do not always like being taught.<br>-Sir Winston Churchill ")
    }
    if (days_left == 15) {
      document.write("The Master in the art of living makes little distinction between his work and his play, his labor and his leisure, his mind and his body, his education and his recreation, his love and his religion. He hardly knows which is which. He simply pursues his vision of excellence in whatever he does, leaving others to decide whether he is working or playing. To him he is always doing both.<br>-Zen Buddhist Text")
    }
    if (days_left == 16) {
      document.write("If you go to work on your goals, your goals will go to work on you. If you go to work on your plan, your plan will go to work on you. Whatever good things we build end up building us.<br>-Jim Rohn")
    }
    if (days_left == 17) {
      document.write("Success is to be measured not so much by the position that one has reached in life as by the obstacles which he has overcome while trying to succeed.<br>-Booker T. Washington ")
    }
    if (days_left == 18) {
      document.write("Things turn out best for people who make the best of the way things turn out.<br>-Anonymous ")
    }
    if (days_left == 19) {
      document.write("To attract attractive people, you must be attractive. To attract powerful people, you must be powerful. To attract committed people, you must be committed. Instead of going to work on them, you go to work on yourself. If you become, you can attract.<br>-Jim Rohn")
    }
    if (days_left == 20) {
      document.write("I have not failed 700 times. I have not failed once. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.<br>-Thomas Edison")
    }
    if (days_left == 21) {
      document.write("There are no secrets to success. It is the result of preparation, hard work learning from failure.<br>-General Colin Powell")
    }
    if (days_left == 22) {
      document.write("Discipline is the refining fire by which talent becomes ability.<br>Roy L Smith")
    }
    if (days_left == 23) {
      document.write("A good leader inspires others with confidence in him; a great leader inspires them with confidence in themselves.<br>-unknown")
    }
    if (days_left == 24) {
      document.write("I am more afraid of an army of 100 sheep led by a lion than an army of 100 lions led by a sheep.<br>-Talleyrand")
    }
    if (days_left == 25) {
      document.write("When I was young I observed that nine out of ten things I did were failures, so I did ten times more work.<br>-Bernard Shaw ")
    }
    if (days_left == 26) {
      document.write("The world is like a mirror, you see? Smile, and your friends smile back.<br>-Japanese Zen saying")
    }
    if (days_left == 27) {
      document.write("The obstacle is the path.<br>-Zen Proverb")
    }
    if (days_left == 28) {
      document.write("Positive thinking will let you do everything better than negative thinking will.<br>-Zig Ziglar")
    }
    if (days_left == 29) {
      document.write("If you think you can do a thing or that you cannot do a thing, in either case you are right.<br>-Henry Ford ")
    }
    if (days_left == 30) {
      document.write("Leadership is practiced not so much in words as in attitude and in actions. <br>-Harold Geneen ")
    }
    if (days_left == 31) {
      document.write("Life is change. Growth is optional. Choose wisely.<br>-Karen Kaiser Clark ")
    }
    if (days_left == 32) {
      document.write("I start with the premise that the function of leadership is to produce more leaders, not more followers.<br>-Ralph Nader")
    }
    if (days_left == 33) {
      document.write("We stand taller on the shoulders of others.<br>-unknown")
    }
    if (days_left == 34) {
      document.write("I am a man of fixed and unbending principles, the first of which is to be flexible at all times.<br>Everett Dirksen")
    }
    if (days_left == 35) {
      document.write("My grandfather told me there are two kinds of people: those who do the work and those who take the credit. He told me to be in the first group - there is less competition there.<br>Indira Gandhi")
    }
    if (days_left == 36) {
      document.write("Initiative is seeing what needs to be done and doing it before you are asked.<br>-unknown")
    }
    if (days_left == 37) {
      document.write("Being a good example is better than giving good advice.<br>-unknown")
    }
    if (days_left == 38) {
      document.write("A leader is a person you will follow to a place you wouldn't go by yourself.<br>Joel Arthur Barker, author of Paradigms")
    }
    if (days_left == 39) {
      document.write("Smooth seas don't make skillful sailors.<br>-unknown")
    }
    if (days_left == 40) {
      document.write("It's not the size of the dog in the fight, it's the size of the fight in the dog.<br>-Mark Twain")
    }
    if (days_left == 41) {
      document.write("It's not what you've got, it's what you use that makes a difference.<br>-Zig Ziglar")
    }
    if (days_left == 42) {
      document.write("Success is dependent upon the glands -- sweat glands.<br>-Zig Ziglar")
    }
    if (days_left == 43) {
      document.write("The journey is the destination.<br>-Unknown")
    }
    if (days_left == 44) {
      document.write("Patience, persistence and perspiration make an unbeatable combination for success.<br>-Napolean Hill")
    }
    if (days_left == 45) {
      document.write("I am a strong believer in luck and I find the harder I work the more I have of it.<br>-Benjamin Franklin")
    }
    if (days_left == 46) {
      document.write("We must be the change we wish to see.<br>-M.K. Gandhi")
    }
    if (days_left == 47) {
      document.write("There is a great difference between worry and concern. A worried person sees a problem, and a concerned person solves a problem.<br>-Harold Stephens")
    }
    if (days_left == 48) {
      document.write("Try not to become a man of success but rather to become a man of value.<br>-Albert Einstein")
    }
    if (days_left == 49) {
      document.write("Waiting is a trap. There will always be reasons to wait...The truth is, there are only two things in life, reasons and results, and reasons simply don't count.<br>-Robert Anthony")
    }
    if (days_left == 50) {
      document.write("Someday is not a day of the week.<br>-unknown")
    }
    if (days_left == 51) {
      document.write("Wisdom begins in wonder.<br>-Socrates")
    }
    if (days_left == 52) {
      document.write("The best way to cheer yourself up is to try to cheer somebody else up.<br>-Mark Twain")
    }
    if (days_left == 53) {
      document.write("Eighty percent of success is showing up.<br>-Woody Allen")
    }
    //  End -->
    </script>
    I appreciate any help that can be offered.
    Last edited by Thundercat; Oct 4, 2006, 01:48 AM. Reason: Member suggestion to make it easier to read

  • #2
    Don't thank people in advance. It makes you seem like you take our help for granted. Also I refuse to read your code until you post it in code tags. Its that little # (pound) sign.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

    Comment


    • #3
      Originally posted by _Aerospace_Eng_ View Post
      Don't thank people in advance. It makes you seem like you take our help for granted.
      Thank you AE! Glad others are getting the message. It is usually only first-time posters who say "thanks in advance". How much nicer to say "I appreciate any help that can be offered."


      Thundercat - have a look at:-

      http://www.javascriptkit.com/javatut...iplejava.shtml

      All the code given in this post has been tested and is intended to address the question asked.
      Unless stated otherwise it is not just a demonstration.

      Comment


      • #4
        Wow, way to knitpick someone who isnt a computer buff

        Your right... saying thanks in advance is a horrible thing to say! From now on I'll just refuse to read anything you have to say unless it is surrounded by a " "
        Last edited by Thundercat; Jul 18, 2010, 10:28 PM.

        Comment


        • #5
          this works for me

          Code:
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          
          <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
          
          <head>
            <title></title>
          <SCRIPT type="text/javascript">
          <!-- Begin
          var linktext=new Array()
          linktext[0]='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b><center>Little Ninjas</center></b><br><img src="http://www.leadershipma.com/studentarea/icon/ninja.gif"></font></td></tr></table>'
          linktext[1]='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b><center>Youth Martial Arts</center></b></font></td></tr></table>'
          linktext[2]='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b><center>Adult Martial Arts</center></b></font></td></tr></table>'
          linktext[3]='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b><center>Cardio Kickboxing</center></b></font></td></tr></table>'
          var ns6=document.getElementById&&!document.all
          var ie=document.all
          function show_text(thetext, whichdiv){
          if (ie) eval("document.all."+whichdiv).innerHTML=linktext[thetext]
          else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext] }
          function reset(whichdiv){
          if (ie) eval("document.all."+whichdiv).innerHTML='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="0" cellspacing="4"><tr><td valign="top"><font face="arial" size="4"><b>plAce your cursor over the links on the left for a description to appear here.<p>click on the link to visit the page</b></font></td></tr></table>'
          else if (ns6) document.getElementById(whichdiv).innerHTML='<table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>pLace your cursor over the links on the left for a description to appear here.<p>click on the link to visit the page</b></font></td></tr></table>'}
          //  End -->
          </SCRIPT>
          </head>
          
          <body>
          
          <table border="0" width="370" bgcolor="green" cellpadding="0" cellspacing="0" align="center">
          <tr><td>
          <table border="0" bgcolor="green" width="370" cellpadding="0" cellspacing="0">
          <tr><td>
          <table border="0" width="160" bgcolor="#FFFFFF" cellpadding="4" cellspacing="0">
          <tr>
            <td onclick="window.location='http://javascript.internet.com'" onmouseover="bgColor='#FF0000'; show_text(0,'div1')" onmouseout="bgColor='#FFFFFF'; reset('div1')" style="cursor:pointer; cursor:hand"><img src="http://www.leadershipma.com/images/prog41.gif"></td>
            <td onclick="window.location='http://javascript.internet.com'" onMouseover="bgColor='#FF0000'; show_text(1,'div1')" onMouseout="bgColor='#FFFFFF'; reset('div1')" style="cursor:pointer; cursor:hand"><img src="http://www.leadershipma.com/images/prog31.gif"></td>
          </tr>
          <tr>
            <td onclick="window.location='http://javascript.internet.com'" onMouseover="bgColor='#FF0000'; show_text(2,'div1')" onMouseout="bgColor='#FFFFFF'; reset('div1')" style="cursor:pointer; cursor:hand"><img src="http://www.leadershipma.com/images/prog21.gif"></td>
            <td onclick="window.location='http://javascript.internet.com'" onMouseover="bgColor='#FF0000'; show_text(3,'div1')" onMouseout="bgColor='#FFFFFF'; reset('div1')" style="cursor:pointer; cursor:hand"><img src="http://www.leadershipma.com/images/prog11.gif"></td>
          </tr>
          </table>
          </td>
          <td>
          <span id="div1"><table border="0" width="210" height="316" bgcolor="#EFEFEF" cellpadding="4" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>Place your cursor over the links on the left for a description to appear here.<br><br>click on the link to visit the page </b></font></td></tr></table></span>
          </td>
          </tr>
          </table>
          </td>
          </tr>
          </table>
          <center><form>
          <input type=button value="Win an iPod" style="background:FF0E0E; color:#FFFFFF; font-size:14pt; font-weight:bold; font-family: Verdana, Arial, Helvetica, sans-serif; border-color: #000000;" onClick="goToURL()">
          </form>
          </center>
          <SCRIPT type="text/javascript">
          <!--
          function days_between(date1, date2) {
            // The number of milliseconds in one day
            var ONE_DAY = 1000 * 60 * 60 * 24
          
            // Convert both dates to milliseconds
            var date1_ms = date1.getTime()
            var date2_ms = date2.getTime()
          
            // Calculate the difference in milliseconds
            var difference_ms = Math.abs(date1_ms - date2_ms)
          
            // Convert back to days and return
            return Math.round((difference_ms/ONE_DAY)/7)
          }
          //  End -->
          </script>
          <SCRIPT type="text/javascript">
          <!--
          // Store the current date and time
          var current_date = new Date()
          
          // Store the date of the next New Year's Day
          var new_years_date = new Date()
          new_years_date.setYear(new_years_date.getFullYear() + 1)
          new_years_date.setMonth(0)
          new_years_date.setDate(1)
          
          // Call the days_between function
          var days_left = days_between(current_date, new_years_date)
          
          // Write the result to the page
          if (days_left == 0) {
            document.write("It has been said that a person may have ten years of experience, or one year of experience repeated ten times.<br>-Yukiso Yamamoto")
          }
          if (days_left == 1) {
            document.write("Gold metals aren't really made of gold. They're made of sweat, determination, and a hard-to-find alloy called guts.")
          }
          if (days_left == 2) {
            document.write("Nobody who ever gave his best regretted it.")
          }
          if (days_left == 3) {
            document.write("The only difference between ordinary and extraordinary is that little <i>extra</i>")
          }
          if (days_left == 4) {
            document.write("If you have someone equal in ability to me I will beat him every time because I will try harder.")
          }
          if (days_left == 5) {
            document.write("Without ambition one starts nothing. Without work one finishes nothing. The prize will not be sent to you. You have to win it.<br>-Ralph Waldo Emerson")
          }
          if (days_left == 6) {
            document.write("Dignity does not consist in possessing honors, but in deserving them. <br> -Aristotle")
          }
          if (days_left == 7) {
            document.write("The fearless are merely fearless, those who act in spite of their fear are truly brave.")
          }
          if (days_left == 8) {
            document.write("A minute's success pays the failure of years. <br>-Robert Browning")
          }
          if (days_left == 9) {
            document.write("Knowledge is potential; action is power.<br>-Anthony Robbins")
          }
          if (days_left == 10) {
            document.write("The only disability in life is a bad attitude.<br>-Scott Hamilton")
          }
          if (days_left == 11) {
            document.write("Never expect gratitude, but always express appreciation.<br>-unknown")
          }
          if (days_left == 12) {
            document.write("It isn't the mountain ahead that wears you out – it's the grain of sand in your shoe.<br>-Robert Service")
          }
          if (days_left == 13) {
            document.write("The object of education is to prepare the young to educate themselves throughout their lives.<br>-Robert Maynard Hutchins ")
          }
          if (days_left == 14) {
            document.write("I am always ready to learn, but I do not always like being taught.<br>-Sir Winston Churchill ")
          }
          if (days_left == 15) {
            document.write("The Master in the art of living makes little distinction between his work and his play, his labor and his leisure, his mind and his body, his education and his recreation, his love and his religion. He hardly knows which is which. He simply pursues his vision of excellence in whatever he does, leaving others to decide whether he is working or playing. To him he is always doing both.<br>-Zen Buddhist Text")
          }
          if (days_left == 16) {
            document.write("If you go to work on your goals, your goals will go to work on you. If you go to work on your plan, your plan will go to work on you. Whatever good things we build end up building us.<br>-Jim Rohn")
          }
          if (days_left == 17) {
            document.write("Success is to be measured not so much by the position that one has reached in life as by the obstacles which he has overcome while trying to succeed.<br>-Booker T. Washington ")
          }
          if (days_left == 18) {
            document.write("Things turn out best for people who make the best of the way things turn out.<br>-Anonymous ")
          }
          if (days_left == 19) {
            document.write("To attract attractive people, you must be attractive. To attract powerful people, you must be powerful. To attract committed people, you must be committed. Instead of going to work on them, you go to work on yourself. If you become, you can attract.<br>-Jim Rohn")
          }
          if (days_left == 20) {
            document.write("I have not failed 700 times. I have not failed once. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.<br>-Thomas Edison")
          }
          if (days_left == 21) {
            document.write("There are no secrets to success. It is the result of preparation, hard work learning from failure.<br>-General Colin Powell")
          }
          if (days_left == 22) {
            document.write("Discipline is the refining fire by which talent becomes ability.<br>Roy L Smith")
          }
          if (days_left == 23) {
            document.write("A good leader inspires others with confidence in him; a great leader inspires them with confidence in themselves.<br>-unknown")
          }
          if (days_left == 24) {
            document.write("I am more afraid of an army of 100 sheep led by a lion than an army of 100 lions led by a sheep.<br>-Talleyrand")
          }
          if (days_left == 25) {
            document.write("When I was young I observed that nine out of ten things I did were failures, so I did ten times more work.<br>-Bernard Shaw ")
          }
          if (days_left == 26) {
            document.write("The world is like a mirror, you see? Smile, and your friends smile back.<br>-Japanese Zen saying")
          }
          if (days_left == 27) {
            document.write("The obstacle is the path.<br>-Zen Proverb")
          }
          if (days_left == 28) {
            document.write("Positive thinking will let you do everything better than negative thinking will.<br>-Zig Ziglar")
          }
          if (days_left == 29) {
            document.write("If you think you can do a thing or that you cannot do a thing, in either case you are right.<br>-Henry Ford ")
          }
          if (days_left == 30) {
            document.write("Leadership is practiced not so much in words as in attitude and in actions. <br>-Harold Geneen ")
          }
          if (days_left == 31) {
            document.write("Life is change. Growth is optional. Choose wisely.<br>-Karen Kaiser Clark ")
          }
          if (days_left == 32) {
            document.write("I start with the premise that the function of leadership is to produce more leaders, not more followers.<br>-Ralph Nader")
          }
          if (days_left == 33) {
            document.write("We stand taller on the shoulders of others.<br>-unknown")
          }
          if (days_left == 34) {
            document.write("I am a man of fixed and unbending principles, the first of which is to be flexible at all times.<br>Everett Dirksen")
          }
          if (days_left == 35) {
            document.write("My grandfather told me there are two kinds of people: those who do the work and those who take the credit. He told me to be in the first group - there is less competition there.<br>Indira Gandhi")
          }
          if (days_left == 36) {
            document.write("Initiative is seeing what needs to be done and doing it before you are asked.<br>-unknown")
          }
          if (days_left == 37) {
            document.write("Being a good example is better than giving good advice.<br>-unknown")
          }
          if (days_left == 38) {
            document.write("A leader is a person you will follow to a place you wouldn't go by yourself.<br>Joel Arthur Barker, author of Paradigms")
          }
          if (days_left == 39) {
            document.write("Smooth seas don't make skillful sailors.<br>-unknown")
          }
          if (days_left == 40) {
            document.write("It's not the size of the dog in the fight, it's the size of the fight in the dog.<br>-Mark Twain")
          }
          if (days_left == 41) {
            document.write("It's not what you've got, it's what you use that makes a difference.<br>-Zig Ziglar")
          }
          if (days_left == 42) {
            document.write("Success is dependent upon the glands -- sweat glands.<br>-Zig Ziglar")
          }
          if (days_left == 43) {
            document.write("The journey is the destination.<br>-Unknown")
          }
          if (days_left == 44) {
            document.write("Patience, persistence and perspiration make an unbeatable combination for success.<br>-Napolean Hill")
          }
          if (days_left == 45) {
            document.write("I am a strong believer in luck and I find the harder I work the more I have of it.<br>-Benjamin Franklin")
          }
          if (days_left == 46) {
            document.write("We must be the change we wish to see.<br>-M.K. Gandhi")
          }
          if (days_left == 47) {
            document.write("There is a great difference between worry and concern. A worried person sees a problem, and a concerned person solves a problem.<br>-Harold Stephens")
          }
          if (days_left == 48) {
            document.write("Try not to become a man of success but rather to become a man of value.<br>-Albert Einstein")
          }
          if (days_left == 49) {
            document.write("Waiting is a trap. There will always be reasons to wait...The truth is, there are only two things in life, reasons and results, and reasons simply don't count.<br>-Robert Anthony")
          }
          if (days_left == 50) {
            document.write("Someday is not a day of the week.<br>-unknown")
          }
          if (days_left == 51) {
            document.write("Wisdom begins in wonder.<br>-Socrates")
          }
          if (days_left == 52) {
            document.write("The best way to cheer yourself up is to try to cheer somebody else up.<br>-Mark Twain")
          }
          if (days_left == 53) {
            document.write("Eighty percent of success is showing up.<br>-Woody Allen")
          }
          //  End -->
          </script>
          </body>
          
          </html>
          Vic

          God Loves You and will never love you less.

          http://www.vicsjavascripts.org/Home.htm

          If my post has been useful please donate to http://www.operationsmile.org.uk/

          Comment


          • #6
            Wow so you came back four years later just to say that? BTW the code you have there is very inefficient but you probably won't read this anyways.
            ||||If you are getting paid to do a job, don't ask for help on it!||||

            Comment

            Working...
            X