FREE CODE Thursday, 03.28.2024, 6:40 PM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
۞Forum Statistics۞
NEW TOPPIV
HOT TOPPIC
TOP MEMBERS
NEW MEMBERS
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • shadow text Have(0) reviews faxuhi
  • Beautiful text two Have(0) reviews faxuhi
  • Nice menu with java script <p1> Have(2) reviews faxuhi
  • Mouse Clock Have(1) reviews faxuhi
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • faxuhi[189]Bài
  • mcsnagger0022[0]Bài
  • thinknoodles[0]Bài
  • karaganis888[0]Bài
  • faxuhi [189]Bài
  • mcsnagger0022 [0]Bài
  • thinknoodles [0]Bài
  • karaganis888 [0]Bài
    • Page 1 of 1
    • 1
    Forum » Web Javascript » Change Text with Interval » Change Text with Interval
    Change Text with Interval
    faxuhiDate: Monday, 07.25.2011, 3:01 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code
    <HEAD>
    <TITLE>AMAZING TEXT SLIDESHOW</TITLE>

    <SCRIPT LANGUAGE="JavaScript">

          function makeArray() {
          this.length = makeArray.arguments.length;
                  for (var i = 0; i < this.length; i++)
                  this[i + 1] = makeArray.arguments[i];
          }

          function ccText (val1, val2, val3, val4) {
          this.curText = '';
          this.posit = 1;    
          this.word = val1;   
          this.length = val1.length;
          this.val3 = val3;
          this.val2 = val2;
          this.val4 = val4;
          this.print = ccText2;
          }

          function ccText2() {
                  if (this.posit <= this.length) {
                  this.curText = this.word[this.posit]
                  outStringWord = ccU + this.val3 + this.curText + ccD;
                  parent.draw.location = 'javascript:parent.outStringWord';
                  this.posit++;
                  }
                  else {
                  doneLoop = true;
                  top.location = this.val4;
                  }
          }

          function ccTextSlide() {
          if (!doneLoop) reDraw = setTimeout('ccTextSlide()', wordIntro.val2);
          wordIntro.print();
          }

    <!--REPLACE THE CONTENT WITH YOUR OWN MESSAGE-->

          var words = new makeArray ('Hello','How Are You Today?','How is The weather','What Do You Like Now','Is This Code Well?');
          var wordIntro = new ccText (words, 2000, '<CENTER><FONT SIZE=5 FACE=VERDANA, ARIAL, Comic Sans MS>', 'http://www.javascriptfreecode.com/');

    <!--REPLACE THE ABOVE LINK WITH YOUR LINK-->

    <!--CHANGB THE VARIABLES BELOW TO MANIPULATE THE SIZE, COLOR, AND FONT STYLE OF YOUR MESSAGE-->

          var ccU = '<HTML><BODY BGCOLOR="#000000" TEXT= "#000000"><CENTER><H3><FONT FACE=ARIAL SIZE=6 COLOR=#FFFFFF></FONT></h3></CENTER><BR><BR><CENTER><TABLE WIDTH=100% BGCOLOR=#FFFFFF><TR><TD>';
          var ccD = '</TD></TR></table><br><br><br /><font face="Tahoma"><a target="_blank" href="http://www.javascriptfreecode.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font></HTML>';
          var ccB = ccU + ccD;
          var doneLoop = false;
    </SCRIPT>
    <FRAMESET onLoad="ccTextSlide()" ROWS="100%, *" FRAMEBORDER=NO BORDER=0>
    <FRAME SCROLLING=AUTO SRC="javascript:parent.ccB" NAME="draw" MARGINWIDTH=3 MARGINHEIGHT=3>
    </FRAMESET>
    </HEAD>

    </HTML>
     
    Forum » Web Javascript » Change Text with Interval » Change Text with Interval
    • Page 1 of 1
    • 1
    Search:

    Copyright MyCorp © 2024 Website builderuCoz