This article illustrates the method for dynamically displaying the text in the status bar of JavaScript implementation. Share to everyone for your reference, specific as follows:
<script>
var child = window.open ("information.html", "_blank", "width=200,height=200,toolbar=no");
function Closechild () {
if (!child.closed) {
child.close ()
}} Set interval of 1 seconds, call once scroll ()
setinterval ("scroll ()", MB)
var space_num = 0;
var dir = 1; Text starts moving from left to right
function scroll () {
var str_space = "";
Space_num = Space_num + 1*dir;
If the number of spaces is greater than 40 or less than 0 o'clock if
(Space_num > | | space_num <= 0) {
dir = dir * ( -1);
}
The number of spaces is increased for
(var i=0 i<space_num; i++) {
Str_space + = "";
}
The number of spaces before the text transforms
window.status = Str_space + "Welcome to study";
}
</script>
<body onunload= "Closechild ()" >
</body>
I hope this article will help you with JavaScript programming.