This article mainly introduces how to use javascript to dynamically display text in the status bar. It involves related techniques of JavaScript to dynamically operate page element Attributes Based on Time functions. It has some reference value, for more information about how to use javascript to dynamically display text in the status bar, see the following example. We will share this with you for your reference. The details are as follows:
Script var child = window. open ("information.html", "_ blank", "width = 200, height = 200, toolbar = no"); function closeChild () {if (! Child. closed) {child. close () ;}// set the interval of 1 second. Call scroll () setInterval ("scroll ()", 100) var space_num = 0; var dir = 1; // start to move the function scroll () {var str_space = ""; space_num = space_num + 1 * dir from left to right; // if the number of spaces is greater than 40 or less than 0, if (space_num> 40 | space_num <= 0) {dir = dir * (-1 );} // auto-increment of the number of spaces for (var I = 0; I
I hope this article will help you design JavaScript programs.