Status Bar Message Fly
This code will make letters fly from the right to the left of the status bar, slowly creating a message. You can adjust the speed of how fast they go and what the message says.
AI
Shrnutí AI: 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.
Zdrojový kód
<Body
onload="timeout = window.setTimeout('setMessage()',500);">
<script language="JavaScript">
<!--
//Type the message you want to appear below
var startMsg = "Type message here";
var str = "";
var msg = "";
var leftMsg = "";
function setMessage()
{
if (msg == "")
{
str = " ";
msg = startMsg;
leftMsg = "";
}
if (str.length == 1)
{
while (msg.substring(0, 1) == " ")
{
leftMsg = leftMsg + str;
str = msg.substring(0, 1);
msg = msg.substring(1, msg.length);
}
leftMsg = leftMsg + str;
str = msg.substring(0, 1);
msg = msg.substring(1, msg.length);
for (var ii = 0; ii < 120; ii++)
{
str = " " + str;
}
}
else
str = str.substring(10, str.length);
window.status = leftMsg + str;
timeout = window.setTimeout('setMessage()',100);
}
// -->
</script>
Původní komentáře (3)
Obnoveno z Wayback Machine