This is a text overlay and rolling effect. Of course, JavaScript is indispensable. It looks like the lyrics of MTV, and uses two colors of text to overlay the effects. Js is used to control the time and color, of course, you can modify it yourself!
<Title> JavaScript imitation lyrics </title> <script language = "JavaScript"> var message = "Welcome to JavaScript Fairyland! "Var neonbasecolor =" gray "var neontextcolor =" 33ff33 "var flashspeed = 100 var n = 0 if (document. all) {document. write ('') for (m = 0; m <message. length; m ++) document. write (''+ message. charAt (m) + '') document. write ('') var tempref = document. all. neonlight} else document. write (message) function neon () {if (n = 0) {for (m = 0; m <message. length; m ++) tempref [m]. style. color = neonbasecolor} tempref [n]. style. color = neontextcolor if (n <tempref. length-1) n ++ else {n = 0 clearInterval (flashing) setTimeout ("beginneon ()", 1500) return} function beginneon () {if (document. all) flashing = setInterval ("neon ()", flashspeed)} beginneon () script
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]