JavaScript status bar walks the horse lantern

zhaozj2021-02-16  57

One .javascript source program

/ ** * File name: status_scroll.js * This is a status bar to walk the horse liner * /

/ ** * Original person: lwqj (Jiang Xining) * Original Date: 2004-04-24 * Modifier: * Modify Date: * /

// var message = "Welcome this program, please respect each love source friend"; var speed = 200; // var space_length = 120; var space = ""; var Sep = 0;

Function Scroll (Message) {var message_length = message.Length; Window.status = message.substring (0, Sep 1); Sep ;

IF (SEP> = Message_Length) {// Sep = Space_Length; Window.SetTimeout ("scroll2 (message);", ";" scroll; ";"; message;, speed); Message) {var out = ""; var out_length = out.length

// for (var i = 1; i <= space_length / space.Length) {OUT = Space} for (var i = 1; i <= 100; i ) {OUT = Space;} OUT = Message; OUT_LENGTH = OUT lTH;

WINDOW.STATUS = OUT.SUBSTRING (SEP, OUT_LENGTH); SEP ; if (SEP> = OUT_LENGTH) SEP = 0;

WINDOW.SETTIMEOUT ("Scroll2 (Message);" SPEED);} // scroll (message);

II. Test procedure