Characters in the javascript status bar first appear in disorder and then arrange the Combined Code _ Status Effect

Source: Internet
Author: User
Javascript status bar code that first appears in disorder and then arranges and combines characters

This effect is divided into two steps: 1. Add <script language = "JavaScript"> <! -- Hide from old browsers var str = "" var direction = "left" function createArray (n) {for (var I = 0; I <n; I ++) {this [I] = 0} return this} var js_mult1 = 3141 var js_mult2 = 5821 var js_m1 = 100000000 var js_m2 = 10000 var js_iseed = 0 var js_iseed1 = 0 var js_iseed2 = 0 function random (n) {if (js_iseed = 0) {now = new Date () js_iseed = now. getHours () + now. getMinutes () * 60 + now. getSeconds () x 3600} js_is Eed1 = js_iseed/js_m2 Container = js_iseed % js_m2 var tmp = (js_iseed2 * js_mult1 + js_mult2) % js_m2) * js_m2 + (js_iseed2 * js_mult2 )) % js_m1 js_iseed = (tmp + 1) % js_m1 return (Math. floor (js_iseed/js_m1) * n)} msgArray = createArray (5) msgArray [0] =, Õ â À ï Ê çtyphoon Start "msgArray [1] =" JavaScript Fairyland Ç çäà â í~~µäè ¥' {" msg = "" dmsg = "" function doMessage () {I F (msg = dmsg) // reset and delay {msg = msgArray [random (5)] dmsg = "" for (var ii = 0; ii <msg. length; ii ++) dmsg + = "" JSCTimeOutID = window. setTimeout ('domessage () ', 100) return true} // pick a character var ii = random (msg. length) var astr = dmsg. substring (0, ii) var bstr = msg. substring (ii, ii + 1) var cstr = dmsg. substring (ii + 1, dmsg. length) dmsg = astr + bstr + cstr window. status = dmsg JSCTi MeOutID = window. setTimeout ('domessage () ', 50) return true} <! -- Done hiding --> SCRIPT 2. add the following code to <body> onload = "JSCTimeOutID = window. setTimeout ('domessage () ', 500); "Example: <body onload =" JSCTimeOutID = window. setTimeout ('domessage', 500); ">
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.