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
Yapay Zeka Özeti: 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.
Kaynak Kod
<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;
Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı