Advertisement
ASP_Volume2 Graphics #39533

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

Resumo por IA: 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.

Código fonte
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; 
Comentários originais (3)
Recuperado do Wayback Machine