Advertisement
ASP_Volume2 Controls/ Forms/ Graphics/ Menus #39975

Scrolling Message

Scrolls message at bottom left of screen. Please vote for me thanks.

AI

KI-Zusammenfassung: 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.

Quellcode
original-source
<html>
<head>
<title>Scrolling Message</title>
</head>
//Done by Priscilla Khoo 
<body>
<script LANGUAGE="JavaScript">
 <!--
 // Scrolling message settings
 var MessageText = "Welcome to Yupigirl's Homepage enjoy!:)"
 var DisplayLength = 130
 var pos = 1 - DisplayLength;
 function ScrollInStatusBar(){
 var scroll = "";
 pos++;
 if (pos == MessageText.length) pos = 1 - DisplayLength;
 if (pos<0) {
 	for (var i=1; i<=Math.abs(pos); i++)
 	scroll = scroll + "";
 	 scroll = scroll + MessageText.substring(0, DisplayLength - i + 1);
 }
 else
  scroll = scroll + MessageText.substring(pos, pos + DisplayLength);
 window.status = scroll;
 //Scrolling speed
 setTimeout("ScrollInStatusBar()",0);
 }
 ScrollInStatusBar()
 //-->
 </script>
</body>
</html>
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine