home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 25: Programming / pc_actual_25.iso / HTML / AceHTML / AceHTML4Free.exe / %MAINDIR% / EScripts / jscript / news.scr < prev    next >
Encoding:
Text File  |  2001-09-06  |  590 b   |  24 lines

  1. <SCRIPT LANGUAGE="JavaScript">
  2. <!-- begin script
  3. var pos1=0, pos2=0, newDelay, Fin2, MsgN;
  4. function multiLine(newDelay1) {
  5.   newDelay = newDelay1;
  6.    if (pos1 > MsgN.length) {
  7.       document.formnew.multi1.value = '';
  8.       pos1 = 0;
  9.       pos2 = 0;
  10.    }
  11.    else if (MsgN.substring(pos1-2,pos1-1) == '.') {
  12.      document.formnew.multi1.value = '';
  13.      pos2 = pos1-1;
  14.      pos1++;
  15.    }
  16.    else {
  17.      document.formnew.multi1.value = MsgN.substring(pos1,pos2);  
  18.      pos1++;
  19.    }
  20.    Fin2 = setTimeout("multiLine(newDelay) ", newDelay1);
  21. }
  22. // end script -->
  23. </SCRIPT>
  24.