FREE CODE Monday, 12.18.2017, 4:24 AM
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
  • HTML table placeholder Have(0) reviews faxuhi
  • Html graphic bullets Have(0) reviews faxuhi
  • Different times of the world by the users choice from a list Have(0) reviews faxuhi
  • Mouseover Alert HTML Script Have(0) reviews faxuhi
  • Redirect to another page and link automatically to other pg Have(0) reviews faxuhi
  • Combo box link box to browse your website easily Have(0) reviews faxuhi
  • Message to user by clicking a button Have(0) reviews faxuhi
  • Background changing color effect 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 11
    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 11
    Search:

    Copyright MyCorp © 2017 Website builderuCoz