scroll.js 1.0 KB

12345678910111213141516
  1. /*So for the people who do not know what the following JavaScript does, here
  2. is a breakdown; In older browsers such as Netscape and even in SeaMonkey,
  3. there is a status bar at the bottom of the page, the function of this bar
  4. differs from browser to browser, but what most of them have in common is that,
  5. if the option is put in place, then they will show a custom message that will
  6. scroll from right to left, in this case, the message will read "NeoZones:
  7. Because Why Not?"
  8. Here is a screenshot of the scrollbar in action:
  9. https://neozones.neocities.org/common/why_not.png
  10. */var MessageText="NeoZones: Because Why Not?";
  11. var DisplayLength=130;var pos=1-DisplayLength;function ScrollInStatusBar(){
  12. var scroll="";pos++;if(pos==MessageText.length)pos=1-DisplayLength;if(pos<0){
  13. for(var i=1;i<=Math.abs(pos);i++)scroll=scroll+" ";
  14. scroll=scroll+MessageText.substring(0,DisplayLength-i+1);}else
  15. scroll=scroll+MessageText.substring(pos,pos+DisplayLength);window.status=scroll;
  16. setTimeout("ScrollInStatusBar()",50);}ScrollInStatusBar();