JavaScript code for zooming IE status bar text and JS Status Bar
This article describes the code for JavaScript to implement the text zoom effect on the IE status bar. We will share this with you for your reference. The details are as follows:
Here we will demonstrate the effect of text scaling on the status bar. It is also based on JavaScript technology. Although it is very inconspicuous, it is useful for learning JavaScript. You can copy the code and save it as an HTML file. You can double-click it to see the effect.
The running effect is as follows:
The Online Demo address is as follows:
Http://demo.jb51.net/js/2015/js-ie-ztl-txt-style-demo/
The Code is as follows:
<HTML> <HEAD> <TITLE> text scaling in the status bar </TITLE> <META http-equiv = Content-Type content = "text/html; charset = gb2312 "> <SCRIPT language = JavaScript> <! -- BegintimeID = 5; stcnt = 11; msg = "<I love shenlong!> "; Wmsg = new Array (33); wmsg [0] = msg; blnk =" "; for (I = 1; I <32; I ++) {B = blnk. substring (0, I); wmsg [I] = ""; for (j = 0; j <msg. length; j ++) wmsg [I] = wmsg [I] + msg. charAt (j) + B;} function wiper () {if (stcnt>-1) str = wmsg [stcnt]; else str = wmsg [0]; if (stcnt -- <-40) stcnt = 31; status = str; clearTimeout (timeID); timeID = setTimeout ("wiper ()", 150 );} // End --> </SCRIPT> </HEAD> <BODY bgColor = # fef4 D9 onload = wiper ()> <BR> <CENTER> <TABLE borderColor = # FFFF00 border = 5 borderlight = "green"> <TBODY> <TR> <TD align = middle> the status bar is the display area! </TD> </TR> </TBODY> </TABLE> </CENTER> </BODY> </HTML>
I hope this article will help you design JavaScript programs.