JavaScript status bar word Fuxian disorderly appearance and rearrange the combination of code _ state effects

Source: Internet
Author: User
This special effect is divided into two steps: 1. Add <script language= "JavaScript" > <!--hide from old browsers var in <pead></pead> Str= "" "var direction=" left "function Createarray (n) {for (var i = 0; i < n; i++) {this[i] = 0} return t his} 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.geth Ours () + now.getminutes () * + now.getseconds () * 3600} js_iseed1 = js_iseed/js_m2 Js_iseed2 = js_iseed% js_m2 var tmp = ((JS_ISEED2 * js_mult1 + js_iseed1 * 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 () {if (msg = dmsg)//reset and delay {msg = Msgarray[rando M (5)] dmsg = "" for (var II = 0; II < msg.length; ii++) Dmsg + = "" Jsctimeoutid = Window.settimeout (' Domessage () ', MB) 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+CST R Window.status = dmsg Jsctimeoutid = window.settimeout (' Domessage () ', m) return Tru e} <!--done hiding--> </SCRIPT> 2. Add the following code to <body> onload= "Jsctimeoutid = Window.settimeout (' Do Message () ', 500); " For example: <body onload= "Jsctimeoutid = Window.settimeout (' Domessage () ', 500);" >
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Related Article

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.