Advertisement
5_2007-2008 Graphics #174594

A Status Bar Scroller

A scroller is text which scrolls on the status bar of the browser. Scrollers are very popular with JavaScript authors (esp. newbies like ourselves) and equally unpopular with the rest of the Web community. (Found at:A beginner's guide to Javascript:http://www.geocities.com/SiliconValley/Park/2554/scroller.html)

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
<SCRIPT LANGUAGE="JavaScript">
  <!-- Start of scroller script
  var scrollCounter = 0;
  var scrollText  = "Any text here";
  var scrollDelay  = 70;
  var i = 0;
  while (i ++ < 140)
	scrollText = " " + scrollText;
  function Scroller()
  {
	window.status = scrollText.substring(scrollCounter++, 
			  scrollText.length);
	if (scrollCounter == scrollText.length) 
	  scrollCounter = 0;
	setTimeout("Scroller()", scrollDelay);
  }
  Scroller();
  // End of scroller script -->
</SCRIPT>
		

procedure TForm1.Button1Click(Sender: TObject); 
begin 
  Label1.Caption := GetCurrentDir; 
end; 
Original Comments (3)
Recovered from Wayback Machine