Code
<html>
<head>
<title>WOweb.ru - Scripts - JavaScript - Running Text</title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
<Style>
A:Link{ Color: #000000; Text-decoration: underline}
A:Visited{ Color: #000000; Text-decoration: underline}
A:Hover{ Color: #000000; Text-decoration: none}
td, body {font-family: verdana, arial, helvetica; font-size:11px;}
</Style>
<!-- HEAD START HERE -->
<!-- DESCRIPTION: This will make a clickable scrolling
banner on your webpage. It closely resembles a news wire
out reading.
INSTRUCTIONS: Place this script in the HEAD tags of
your webpage. Change the text by altering the values in
cc [#] = "Your messages".
FUNCTIONALITY: Works in both Netscape & IE.
-->
<SCRIPT LANGUAGE="JavaScript">
var speed = 90
var pause = 1000
var timerID = null
var wireRunning = false
var cc = new Array()
cc[0] = "Thanks for choosing WOweb.ru"
cc[1] = "We hope you enjoy this script"
cc[2] = "Visit our website at..."
cc[3] = "http://www.soft.ucoz.lv"
var currentMessage = 0
var offset = 0
function stopWire() {
if (wireRunning)
clearTimeout(timerID)
wireRunning = false
}
function startWire() {
stopWire()
showWire()
}
function showWire() {
var text = cc[currentMessage]
if (offset < text.length) {
if (text.charAt(offset) == " ")
offset++
var partialMessage = text.substring(0, offset + 1)
document.wireForm.wireField.value = partialMessage
offset++
timerID = setTimeout("showWire()", speed)
wireRunning = true
} else {
offset = 0
currentMessage++
if (currentMessage == cc.length)
currentMessage = 0
timerID = setTimeout("showWire()", pause)
wireRunning = true
}
}
// -->
</SCRIPT>
<!-- HEAD END HERE -->
</head>
<body bgcolor="#EDEDED" text="#000000" link="#000000" topmargin="0" leftmargin="0">
<center>
<!-- BODY START HERE -->
<FORM NAME="wireForm">
<INPUT TYPE="text" NAME="wireField" VALUE="...Click here for the News..." SIZE=40 onFocus="if (!wireRunning) { startWire() }">
</FORM>
<!-- BODY END HERE -->
</body>
</html>