tag of the document. /// /// Original JavaScript. ScrollingStatusBar /// Author: Debjyoti Das. /// Author URL: http://ddas77.tripod.com /// Author EMail: [email protected] /// [email protected] /// [email protected] /// Author ICQ: 82485009 /// /// Date: Saturday, January 25, 2003 11:38 AM /// /// Copyright (C) 2003, ddas77.tripod.com. All Rights Reserved. /// You are free to reuse this code snippet. /// Please have the courtesy to let this header message intact. /// function statusMessageObject(p, d) { this.msg = MESSAGE this.out = " " this.pos = POSITION this.delay = DELAY this.i = 0 this.reset = clearMessage } function clearMessage() { this.pos = POSITION } var POSITION = 100 // this value controls the speed of the scrolling text var DELAY = 50; // hint: 90=very slow, 70=slow, 50=medium, 30=fast, 10=very fast // This is the message string that will be scrolled. // Customize this string. var MESSAGE = "Welcome To TAMAZDI GAMING!!!" var scroll = new statusMessageObject() function scroller() { // // add spaces to begin of message // for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++) { scroll.out += " " } // // if you are still having leading spaces, just // add a custom string to the tail of the message // OR else if the string is running off the // screen, only add the characters left. // if (scroll.pos >= 0) scroll.out += scroll.msg else scroll.out = scroll.msg.substring(-scroll.pos, scroll.msg.length) window.status = scroll.out // set parameters for next run scroll.out = " " scroll.pos-- // if you are at the end of the message, // reset parameters to start again if (scroll.pos < -(scroll.msg.length)) { scroll.reset() } setTimeout ('scroller()', scroll.delay) } /// End of Script. // -->
![]() |
| * Books * GAMES PROJECT * Hydrogen * My Car Project * Robotics * Associates in Business |
|
| I will show my child. |