\n
Welcome visitors!
HOME
Home
Home
About
TECHNOLOGY
Misc Tech
Tools
Linux
SQL
Webmaster:
HTML
javascript
drupal
Programming Languages:
perl
java
BOARD
Boards
Tech Blog
Message Board
THE ARCHIVE
Places:
Points of Interest
WTC
Museum
Lists:
The Text Files
Fonts Archive
Names database
Hobby:
Hobbies
Stereograms
JUST FOR FUN
Games:
web games
Other Amusement:
weird pix
flip text
ugly cars
Aquarium
Simple Text Animation: Looping Thru an Array



Code:
    <form>
      <label id="box1"></label>
    </form>

    <script>
    
      var quotes=new Array();
      quotes=[
      'Line one',
      'Line two',
      'Line three',
      ];
      var x=0;

      function showQuotes() {
      document.getElementById("box1").innerHTML=quotes[x] ;

      x++;
      if(x==quotes.length) {
      x=0;
      }
      }
      setInterval('showQuotes()',500);

    </script>