JS Happy Lights status bar effect code

Source: Internet
Author: User
Tip: You can modify some of the code before running

JS Happy Lights status bar effect code <ptml> <pead> <script language= "JavaScript" > <!--function Makearray (n) {this.length = N; for (i=0; i<n; i++) this[i]= ""; } stcnt = 16; msg = "Welcome to your www.111cn.net!" wmsg = new Makearray (32); wmsg[0]=msg; Blnk = ""; For (I=1 i<32; i++) {b = blnk.substring (0,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; Window.status = str; Timeid = Window.settimeout ("wiper ()", 150); }//--> </script> </pead> <body onload=wiper ();> 1, bounce, run lanterns <marquee width=400 Behavior=alternat E direction=left align=middle border=1><font color= "#ff0099" > Bombs to run Lanterns </font></marquee> 2, Running Fast racing lights <marquee width=400 behavior=alternate direction=left align=middle border=1 Color= "#ff6699" > Running fast Racing Lights </font></marquee> 3, with a super link to the racing lights <marquEE width=90%> <font color= "#ff3399" > ^-^ I am a happy lantern with a hyperlink! Dot I try ^-^</font> </marquee> 4, appears to have elastic effect: <marquee behavior= "Alternate" direction= "Up" width= "height=" >http://111cn.net/</marquee> parameter description: Behavior=scroll, slide, alternate horse way: Circular bypass, only to stop once, back and forth movement Direction=left,right horse racing direction: From left to right, from right to left loop=100 Happy horse number: 100 cycles, If do not write default to have been cycling width=100%,height=200 race range: Width is 100%, high is 200 pixel scrollamount=20 race speed: The larger the number the faster the scrolldelay=500 horse race delay: The number of milliseconds, the use of it can achieve leapfrog scrolling White space between the hspace=20,vspace=20 and other areas bgcolor= #00FFCC the background color of the happy area </body> </ptml>
Tip: You can modify some of the code before running

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.